]> granicus.if.org Git - cronie/commitdiff
Remove 'dont log' part which probably never worked.
authorMarcela Mašláňová <mmaslano@redhat.com>
Wed, 14 Apr 2010 13:44:48 +0000 (15:44 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Wed, 14 Apr 2010 13:44:48 +0000 (15:44 +0200)
src/entry.c

index 4e382f8f05c608743dc604624fcdc13a17bf6ebf..17fa92af97007287b0c79f89aa69a82eb56c89ad 100644 (file)
@@ -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...