[gnome-schedule] Fix bug 603894: Suppress output got appended every time.



commit e5356f08b282c3166543530263e4cc6d9aa408f8
Author: Gaute Hope <eg gaute vetsj com>
Date:   Mon Dec 7 12:16:31 2009 +0100

    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.

 src/crontab.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/crontab.py b/src/crontab.py
index 23042b6..e29f958 100644
--- a/src/crontab.py
+++ b/src/crontab.py
@@ -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])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]