Bugzilla – Bug 284
unbound-checkconfig.exe reports wrong keyword when last line is a comment
Last modified: 2009-11-30 14:08:32 CET
unbound-checkconfig.exe is reporting an error, when the last line of the configuration file is a comment and not an empty line or a valid keyword.
This is just confusing new users, as they may copy statements from the sample configuration whith lots of comments:
C:\Program Files\Unbound\service.conf:33: error: unknown keyword '#' read C:\Program Files\Unbound\service.conf failed: 1 errors in configuration file
This is because there is no return on that last line, the parser expects # followed by an end-of-line. A workaround is to press enter at the end of the file. (Must be windows text editing that is annoying here, I can reproduce on unix, but my text editors do not want to make such files).
Thanks for the report,
Fix in svn trunk for the next release.