[Dnsmasq-discuss] [PATCH] Correctly warn if dynamic directory is not a directory

Dominik Derigs dl6er at dl6er.de
Wed Sep 22 13:36:31 UTC 2021


When users specify a file (instead of a directory) as argument of
hostsdir, dnsmasq will log:

> dnsmasq: bad dynamic directory hosts: Success

because stat() didn't fail for this file, however, the test
whether this is a directory failed.

This patch changes the behavior to log

> dnsmasq: bad dynamic directory hosts: not a directory

instead in this case.

Best,
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Correcly-warn-if-dynamic-directory-is-actually-no-di.patch
Type: text/x-patch
Size: 839 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210922/6dfc3dc1/attachment.bin>


More information about the Dnsmasq-discuss mailing list