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

Simon Kelley simon at thekelleys.org.uk
Thu Sep 23 10:02:59 UTC 2021


Applied. Thanks.

Cheers,

Simon.


On 22/09/2021 14:36, Dominik Derigs wrote:
> 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
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> 



More information about the Dnsmasq-discuss mailing list