From: Rocco Iannacci Date: Wed, 29 Jul 2009 06:29:57 +0000 (+0200) Subject: Segfault on ppc64 was caused by parsing random delay from anacrontab. X-Git-Tag: cronie1.4.1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d730b137f0e2796d3a799bdd8ffc6a502f35b39;p=cronie Segfault on ppc64 was caused by parsing random delay from anacrontab. Signed-off-by: Marcela Mašláňová --- diff --git a/anacron/readtab.c b/anacron/readtab.c index e574657..68b588b 100644 --- a/anacron/readtab.c +++ b/anacron/readtab.c @@ -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;