1
Subject: Fixes for crontab entry parsing
2
Last-Update: 2010-04-11
4
Handle bogues values, whitespace, ...
6
===================================================================
7
--- patched.orig/entry.c 2010-05-06 18:18:25.803561007 +0200
8
+++ patched/entry.c 2010-05-06 18:18:26.422435960 +0200
13
+ /* If we used one of the @commands, we may be pointing at
14
+ blanks, and if we don't skip over them, we'll miss the user/command */
15
+ Skip_Blanks(ch, file);
16
/* ch is the first character of a command, or a username */
20
* sent as a 0 since there is no offset either.
22
ch = get_number(&num3, 0, PPC_NULL, ch, file);
24
+ if (ch == EOF || num3 <= 0)
27
/* no step. default==1.
36
/* try to find the name in the name list