[Dnsmasq-discuss] [PATCH] Correctly warn if dynamic directory is not a directory
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 839 bytes
Desc: not available
More information about the Dnsmasq-discuss