From: Simon Kelley Date: Thu, 10 Sep 2015 22:08:43 +0000 (+0100) Subject: Respect the --no-resolv flag in inotify code. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77607cbea0ad0f876dfb79c8b2c121ee400d57d0;p=people%2Fms%2Fdnsmasq.git Respect the --no-resolv flag in inotify code. --- diff --git a/CHANGELOG b/CHANGELOG index bbc2834..d6e309f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,8 +7,13 @@ version 2.76 Enhance --add-subnet to allow arbitrary subnet addresses. Thanks to Ed Barsley for the patch. + + Respect the --no-resolv flag in inotify code. Fixes bug + which caused dnsmasq to fail to start if a resolv-file + was a dangling symbolic link, even of --no-resolv set. + Thanks to Alexander Kurtz for spotting the problem. + - version 2.75 Fix reversion on 2.74 which caused 100% CPU use when a dhcp-script is configured. Thanks to Adrian Davey for diff --git a/debian/changelog b/debian/changelog index 90da2d6..99c0383 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +dnsmasq (2.76-1) unstable; urgency=low + + * New upstream. (closes: #798586) + + -- Simon Kelley Thur, 10 Sep 2015 23:07:21 +0000 + dnsmasq (2.75-1) unstable; urgency=low * New upstream. (closes: #794095) diff --git a/src/inotify.c b/src/inotify.c index 52d412f..ef05c58 100644 --- a/src/inotify.c +++ b/src/inotify.c @@ -90,6 +90,9 @@ void inotify_dnsmasq_init() if (daemon->inotifyfd == -1) die(_("failed to create inotify: %s"), NULL, EC_MISC); + + if (option_bool(OPT_NO_RESOLV)) + return; for (res = daemon->resolv_files; res; res = res->next) {