Ignoring backup files from editor didn't work for me.

After modification of src/inotify.c where twice an
    in->len
was replaced by
    strlen(in->name)
it did work as expected.
---
 src/inotify.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/inotify.c b/src/inotify.c
index eda1d56..45c730a 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -235,8 +235,8 @@ int inotify_check(time_t now)
 
          /* ignore emacs backups and dotfiles */
          if (in->len == 0 || 
-             in->name[in->len - 1] == '~' ||
-             (in->name[0] == '#' && in->name[in->len - 1] == '#') ||
+             in->name[strlen(in->name) - 1] == '~' ||
+             (in->name[0] == '#' && in->name[strlen(in->name) - 1] == '#') ||
              in->name[0] == '.')
            continue;
          
-- 
1.7.10.4


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to