This commit is contained in:
Konstantin Stepanov 2014-04-22 08:50:49 -07:00
parent 3dcf197820
commit dda78b82fc

View File

@ -80,7 +80,7 @@ def parse_crontab(filename, withuser=True, monotonic=False):
'c': ' '.join(command)
}
else:
if len(parts) < 5:
if len(parts) < 5 + int(withuser):
continue
minutes, hours, days = parts[0:3]