core: search in /usr/local before system paths for the dnsmasq binary

When looking for the dnsmasq (or any) binary, NetworkManager should
check /usr/local before it checks any system installed version. This
allows the user to replace the binary with a newer version should they
desire and is more consistent with the search behaviour commonly found
in $PATH.

https://github.com/NetworkManager/NetworkManager/pull/10
This commit is contained in:
Aidan Delaney 2016-09-30 15:57:24 +01:00 committed by Lubomir Rintel
parent f605262792
commit 05e66d5202

View file

@ -1152,12 +1152,12 @@ nm_utils_kill_process_sync (pid_t pid, guint64 start_time, int sig, NMLogDomain
const char *const NM_PATHS_DEFAULT[] = {
PREFIX "/sbin/",
PREFIX "/bin/",
"/usr/local/sbin/",
"/sbin/",
"/usr/sbin/",
"/usr/local/sbin/",
"/usr/local/bin/",
"/bin/",
"/usr/bin/",
"/usr/local/bin/",
NULL,
};