Blame SOURCES/dnsmasq-2.76-inotify.patch

814650
diff --git a/src/dnsmasq.c b/src/dnsmasq.c
814650
index e1d3bbd..99e5437 100644
814650
--- a/src/dnsmasq.c
814650
+++ b/src/dnsmasq.c
814650
@@ -358,7 +358,8 @@ int main (int argc, char **argv)
814650
     }
814650
 
814650
 #ifdef HAVE_INOTIFY
814650
-  if (daemon->port != 0 || daemon->dhcp || daemon->doing_dhcp6)
814650
+  if ((daemon->port != 0 || daemon->dhcp || daemon->doing_dhcp6)
814650
+      && (!option_bool(OPT_NO_RESOLV) || daemon->dynamic_dirs))
814650
     inotify_dnsmasq_init();
814650
   else
814650
     daemon->inotifyfd = -1;