Commit e5356f08 authored by Gaute Hope's avatar Gaute Hope

Fix bug 603894: Suppress output got appended every time.

The crontab parser was checking for wrong constants when reading the
data files, output=1 or 3 make a command in the crontab have >/dev/null
2>&1 appended. Not 0 and 3.
parent 9161d1a9
......@@ -611,7 +611,7 @@ class Crontab:
display = ""
command_d = ""
if (output == 0) or (output == 3):
if (output == 1) or (output == 3):
# remove devnull part of command
# searching reverse, and only if output is saved in the datafile
pos = command.rfind (self.output[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment