[ntp:hackers] Can somebody give me a quick lesson on how the config file parser works?
Hal Murray
hmurray at megapathdsl.net
Tue Aug 12 09:37:55 UTC 2014
stenn at ntp.org said:
> I'd be curious to see how the file saved by the "saveconfig" differs based
> on the location of your logging directives.
I ran a few tests. It reorders various things. I didn't see any pattern
that made sense to me. It also removed extra spaces and inserts quotes
around strings/filenames.
I think that's OK for testing, but I can't see any use for saveconfig in the
real world.
If anybody wants them, I'll send my toy test case. The key step is something
like:
./ntpd --configfile test1-in.conf --saveconfigquit test1-out.conf
--------
I don't know if/how that's related to the problem I saw. I did double check
and reproduced the problem. It's https://bugs.ntp.org/show_bug.cgi?id=2635
--
These are my opinions. I hate spam.
More information about the hackers
mailing list