Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions scheduler/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2772,16 +2772,16 @@ parse_variable(
{
/*
* Unknown directive! Output an error message and continue...
*
* Return value 1 is on purpose - we ignore unknown directives to log
* error, but do not stop the scheduler in case error in configuration
* is set to be fatal.
*/

if (!value)
cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value for %s on line %d of %s.",
line, linenum, filename);
else
cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown directive %s on line %d of %s.",
line, linenum, filename);
cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown directive %s on line %d of %s.",
line, linenum, filename);

return (0);
return (1);
}

switch (var->type)
Expand Down
Loading