[Pkg-utopia-maintainers] Bug#615082: Bug#615082: Bug#615082: Acknowledgement (network-manager: dnsmasq exited with error: Configuration problem)

Dan Williams dcbw at redhat.com
Sat Feb 26 00:06:19 UTC 2011


On Fri, 2011-02-25 at 20:25 +0000, Simon Kelley wrote:
> On 25/02/11 20:03, Michael Biebl wrote:
> > Am 25.02.2011 20:45, schrieb Simon Kelley:
> >> On 25/02/11 19:29, Michael Biebl wrote:
> >>> Am 25.02.2011 18:58, schrieb Simon Kelley:
> >
> >>> Is there maybe a nicer way to tell dnsmasq to *not* read the global
> >>> configuration file?
> >>
> >> Ah, I hadn't read up in the source code to that part.
> >>
> >> It's completely unnecessary:
> >>
> >> dnsmasq --conf-file
> >>
> >> suppresses reading the default configuration file. Just stop adding the
> >> junk filename (which never did anything, anyway) and dnsmasq will no
> >> longer complain.
> >
> > Perfect, thanks for your input. Seems like the way to go then.
> >
> > Just to be sure: Can I rely on dnsmasq --conf-file to work on versions<  2.57?
> 
> You can.
> 
> > Is there a minimum version when this behaviour was introduced?
> 
> There must be and I'm not sure exactly which it is, but I just checked 
> 2.39 which is four years old, and this behaviour was in then.
> 
> > I can only assume Dan added this hack (back then) for a reason.
> 
> My guess is that it arises from unclear documentation rather than lack 
> of functionality.

I just added it because I ran into a problem at one point (and somebody
else did too) where a package installed global dnsmasq config file had
some conflicting options with what NM spawns dnsmasq with.  Since NM
sends all the arguments on the command-line, because they change
depending on your IP connection and because we can't guarantee what's in
the global config file, I did this hack.  I was not aware of leaving off
the config file name.

We can and should fix it though.  Just one question: does the
"--conf-file" have to be at the end of the arg list, or is dnsmasq smart
enough to know that something that comes after it that starts with "--"
is an argument?  I'd expect this to be the case, but just checking.

Dan







More information about the Pkg-utopia-maintainers mailing list