From 2e493bf38743199502401b7c3fc08976dab6e28c Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 17 Dec 2011 22:53:06 -0800 Subject: [PATCH] Handle fedora example line --- cron/cron-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/cron-lib.pl b/cron/cron-lib.pl index daafd48af..71bf389d8 100755 --- a/cron/cron-lib.pl +++ b/cron/cron-lib.pl @@ -69,7 +69,7 @@ if ($config{'system_crontab'}) { &open_readfile(TAB, $config{'system_crontab'}); while() { # Comment line in Fedora 13 - next if (/^#+\s+\*\s+\*\s+\*\s+\*\s+\*\s+command\s+to\s+be\s+executed/); + next if (/^#+\s+\*\s+\*\s+\*\s+\*\s+\*\s+(user-name\s+)?command\s+to\s+be\s+executed/); if (/^(#+)?[\s\&]*(-)?\s*([0-9\-\*\/,]+)\s+([0-9\-\*\/,]+)\s+([0-9\-\*\/,]+)\s+(([0-9\-\*\/]+|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec|,)+)\s+(([0-9\-\*\/]+|sun|mon|tue|wed|thu|fri|sat|,)+)\s+(\S+)\s+(.*)/i) { # A normal h m s d w time