conf.c: Fix stopping scheduler on unknown directive#1443
conf.c: Fix stopping scheduler on unknown directive#1443zdohnal merged 1 commit intoOpenPrinting:masterfrom
Conversation
Change the return value to do not trigger stopping the scheduler in case of unknown directive, because stopping the scheduler on config errors should only happen in case of syntax errors.
|
@zdohnal I want to think about this one for a minute... |
|
@michaelrsweet no problem - I have removed the part with checking for value there. IMO we get into the scope because the directive is unknown, so it looks unnecessary to report that unknown directive does not have a value - it effectively hid the fact the directive is unknown as well. |
|
@zdohnal Personally I think it is good when by default For example assume there is a CUPS update Usually users won't look at log files |
|
I think doing this makes sense on the 2.4.x branch, to prevent the behavioural change that is causing issues for some users. While the 5661ec7 commit does fix some of the configuration elements caused by CUPS itself, per PR 1445, it has been reported that some users also have ancient configuration directives such as "BrowseAddress" and "BrowseOrder" which up until now didn't prevent the CUPS daemon from starting. |
michaelrsweet
left a comment
There was a problem hiding this comment.
I think I want to add a new "unknown" value (fail on unknown configuration directives) for FatalErrors in CUPS 2.5, and then for CUPS 2.4.x and earlier we just (for now) use this "workaround" for the old/misplaced directives.
So approving this as-is to apply to master and 2.4.x, and I'll file a new issue against 2.5 for the "unknown" value for FatalErrors.
Change the return value to do not trigger stopping the scheduler in case of unknown directive, because stopping the scheduler on config errors should only happen in case of syntax errors.