[Dnsmasq-discuss] [PATCH] Allow using only command line parameters explicitly

Petr Menšík pemensik at redhat.com
Wed Sep 30 21:49:13 BST 2020


Hello,

It was reported on OpenStack, it reads always configuration file. It is
not documented, how to skip invalid configuration clauses.

We changed default configuration to listen only on loopback on Fedora.
It causes conflicts in configuration, because our default configuration
file no longer contains only commented out files.

It requires skipping out default configuration. I use:

dnsmasq --conf-file=/dev/null

but it seems inadequate and not documented. So I implemented empty path
handling, which changes. It used default configuration until now. Now it
omits reading default configuration file. If you want only parameters
specified on command line and default path ignored, just use "--conf-file=".

Original crash fixed too can be triggered by:
dnsmasq --test --conf-file=/dev/null --conf-file=

Cheers,
Petr
-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnsmasq-no-config.patch
Type: text/x-patch
Size: 2954 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200930/550c1bd8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200930/550c1bd8/attachment.sig>


More information about the Dnsmasq-discuss mailing list