aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/crond.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index a472c9b23..c0c8bef11 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -512,13 +512,12 @@ static void load_crontab(const char *fileName)
512 if (strcmp(e->name, tokens[0] + 1) == 0) { 512 if (strcmp(e->name, tokens[0] + 1) == 0) {
513 /* 513 /*
514 * tokens[1] is only the first word of command, 514 * tokens[1] is only the first word of command,
515 * can'r use it.
515 * find the entire command in unmodified string: 516 * find the entire command in unmodified string:
516 */ 517 */
517 tokens[5] = strstr( 518 tokens[5] = skip_whitespace(
518 skip_non_whitespace(skip_whitespace(parser->data)), 519 skip_non_whitespace(
519 /* ^^^^ avoids mishandling e.g. "@daily aily PARAM" */ 520 skip_whitespace(parser->data)));
520 tokens[1]
521 );
522 if (e->tokens[0]) { 521 if (e->tokens[0]) {
523 char *et = (char*)e->tokens; 522 char *et = (char*)e->tokens;
524 /* minute is "0" for all specials */ 523 /* minute is "0" for all specials */