diff options
author | Jan Alexander Steffens <jan.steffens@gmail.com> | 2013-05-13 07:10:00 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-01-03 14:51:16 -0500 |
commit | 691422a460166cbe5eb6fe37258fecd2b2c101cf (patch) | |
tree | e5ecc80a850890b93d694221a702a6243cfcb8e9 /src/dns-manager | |
parent | c4edeb6da487740610c4f798c76e0f71c9df1e85 (diff) | |
download | NetworkManager-691422a460166cbe5eb6fe37258fecd2b2c101cf.tar.gz |
build: add --with-dnsmasq, to specify dnsmasq path
https://bugzilla.gnome.org/show_bug.cgi?id=700219
Diffstat (limited to 'src/dns-manager')
-rw-r--r-- | src/dns-manager/nm-dns-dnsmasq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c index 23f46e9de1..8367693da7 100644 --- a/src/dns-manager/nm-dns-dnsmasq.c +++ b/src/dns-manager/nm-dns-dnsmasq.c @@ -54,6 +54,7 @@ static inline const char * find_dnsmasq (void) { static const char *paths[] = { + DNSMASQ_PATH, "/usr/local/sbin/dnsmasq", "/usr/sbin/dnsmasq", "/sbin/dnsmasq", @@ -62,7 +63,7 @@ find_dnsmasq (void) const char **binary = paths; while (*binary != NULL) { - if (g_file_test (*binary, G_FILE_TEST_EXISTS)) + if (**binary && g_file_test (*binary, G_FILE_TEST_EXISTS)) return *binary; binary++; } |