Handle fedora example line

This commit is contained in:
Jamie Cameron
2011-12-17 22:53:06 -08:00
parent 5871b41bf5
commit 2e493bf387

View File

@@ -69,7 +69,7 @@ if ($config{'system_crontab'}) {
&open_readfile(TAB, $config{'system_crontab'});
while(<TAB>) {
# 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