On 2/11/2018 4:58 PM, Andy Hawkins wrote:
Hi,

In article <slrnp80btc.nkj.a...@xcp-mailnews.gently.org.uk>,
            Andy Hawkins<a...@gently.org.uk> wrote:
I could have a look at submitting a patch, but my editor is showing some
very strange indentation of the source, so I suspect I have my tab settings
incorrect. What is the standard setting for tabs on the dnasmasq source
files?

Here's an attempt at a patch. If it needs to be in a different format, then
please let me know. The changes are minimal however, so applying the patch
manually should be trivial.

[andy@xcp-dev dnsmasq (hosts-dirs *)]$ git diff --ignore-space-at-eol
diff --git a/src/inotify.c b/src/inotify.c
old mode 100644
new mode 100755

Is the change of the mode intentionel (from 644 to 755)?

index eda1d56..a655fe2
--- 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;

Hope that helps.

Andy


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



--
John Doe

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

Reply via email to