]> granicus.if.org Git - cronie/commitdiff
Segfault on ppc64 was caused by parsing random delay from anacrontab.
authorRocco Iannacci <rocian AT gmail DOT com>
Wed, 29 Jul 2009 06:29:57 +0000 (08:29 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Wed, 29 Jul 2009 06:29:57 +0000 (08:29 +0200)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
anacron/readtab.c

index e574657050464179d8cd1b195848ebe2d9daee37..68b588b21aea2d2a2f2d82bac135643da67aa5b2 100644 (file)
@@ -273,7 +273,7 @@ parse_tab_line(char *line)
             Debug(("Jobs will start in the %02d:00-%02d:00 range.", range_start, range_stop));
         }
         if (strncmp(env_var, "RANDOM_DELAY", 12) == 0) {
-            r = match_rx("^([[:digit:]]+)$", value, 1);
+            r = match_rx("^([[:digit:]]+)$", value, 0);
             if (r != -1) {
                 int i = random();
                 double x = 0;