build/meson: fix missing slash when detecting resolvconf/netconfig binaries
Fix detection for /usr/local/sbin/{resolvconf,netconfig}.
(and no longer automatically use "/usr/local/sbinnetconfig" if present)
Fixes: 5a0cef2f36
('build: meson: uniform handling of rc managers')
[thaller@redhat.com: commit message adjusted]
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/349
This commit is contained in:

committed by
Thomas Haller

parent
89c8a47047
commit
2b17f246f0
@@ -621,7 +621,7 @@ foreach prog_name : ['resolvconf', 'netconfig']
|
||||
prog = find_program(prog_name,
|
||||
'/usr/' + prog_name,
|
||||
'/usr/sbin/' + prog_name,
|
||||
'/usr/local/sbin' + prog_name,
|
||||
'/usr/local/sbin/' + prog_name,
|
||||
required : false)
|
||||
if prog.found()
|
||||
prog_path = prog.path()
|
||||
|
Reference in New Issue
Block a user