From: Marcela Mašláňová Date: Wed, 14 Apr 2010 13:44:48 +0000 (+0200) Subject: Remove 'dont log' part which probably never worked. X-Git-Tag: cronie1.4.5~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57fd1463f07c3a5199dbb40c4596c458dd8aaac3;p=cronie Remove 'dont log' part which probably never worked. --- diff --git a/src/entry.c b/src/entry.c index 4e382f8..17fa92a 100644 --- a/src/entry.c +++ b/src/entry.c @@ -190,7 +190,7 @@ entry *load_entry(FILE * file, void (*error_func) (), struct passwd *pw, else { Debug(DPARS, ("load_entry()...about to parse numerics\n")) - if (ch == '*') + if (ch == '*') e->flags |= MIN_STAR; ch = get_list(e->minute, FIRST_MINUTE, LAST_MINUTE, PPC_NULL, ch, file); if (ch == EOF) { @@ -349,24 +349,6 @@ entry *load_entry(FILE * file, void (*error_func) (), struct passwd *pw, Debug(DPARS, ("load_entry()...about to parse command\n")) - /* If the first character of the command is '-' it is a cron option. - */ - while ((ch = get_char(file)) == '-') { - switch (ch = get_char(file)) { - case 'q': - e->flags |= DONT_LOG; - Skip_Nonblanks(ch, file) - break; - default: - ecode = e_option; - goto eof; - } - Skip_Blanks(ch, file) - if (ch == EOF || ch == '\n') { - ecode = e_cmd; - goto eof; - } - } unget_char(ch, file); /* Everything up to the next \n or EOF is part of the command...