diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index d8423cf4f..154243c78 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -469,12 +469,15 @@ static void SynchronizeFile(const char *fileName) | |||
469 | file->cf_User = xstrdup(fileName); | 469 | file->cf_User = xstrdup(fileName); |
470 | pline = &file->cf_LineBase; | 470 | pline = &file->cf_LineBase; |
471 | 471 | ||
472 | while (--maxLines && (n=config_read(parser, tokens, 6, 0, " \t", '#')) >= 0) { | 472 | while (--maxLines |
473 | && (n = config_read(parser, tokens, 6, 1, "# \t", PARSE_LAST_IS_GREEDY)) | ||
474 | ) { | ||
473 | CronLine *line; | 475 | CronLine *line; |
474 | 476 | ||
475 | if (DebugOpt) { | 477 | USE_FEATURE_PARSE_COPY( |
476 | crondlog(LVL5 "user:%s entry:%s", fileName, parser->data); | 478 | if (DebugOpt) |
477 | } | 479 | crondlog(LVL5 "user:%s entry:%s", fileName, parser->data); |
480 | ) | ||
478 | 481 | ||
479 | /* check if line is setting MAILTO= */ | 482 | /* check if line is setting MAILTO= */ |
480 | if (0 == strncmp(tokens[0], "MAILTO=", 7)) { | 483 | if (0 == strncmp(tokens[0], "MAILTO=", 7)) { |
@@ -485,7 +488,7 @@ static void SynchronizeFile(const char *fileName) | |||
485 | continue; | 488 | continue; |
486 | } | 489 | } |
487 | /* check if a minimum of tokens is specified */ | 490 | /* check if a minimum of tokens is specified */ |
488 | if (n < 5) | 491 | if (n < 6) |
489 | continue; | 492 | continue; |
490 | *pline = line = xzalloc(sizeof(CronLine)); | 493 | *pline = line = xzalloc(sizeof(CronLine)); |
491 | /* parse date ranges */ | 494 | /* parse date ranges */ |