]> granicus.if.org Git - cronie/commitdiff
Cron writes job output to syslog incorrectly. When cron is invoked in a way to print...
authorMarcela Mašláňová <mmaslano@redhat.com>
Fri, 24 Jun 2011 10:10:11 +0000 (12:10 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Fri, 24 Jun 2011 10:10:11 +0000 (12:10 +0200)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
src/do_command.c

index 44510d5d1ebef28e0739fa522783e209ac7a4485..86e8a89fbb14cff572f9f78586f06382e0732018 100644 (file)
@@ -474,7 +474,6 @@ static int child_process(entry * e, user * u, char **jobenv) {
                                bytes++;
                                if (mail)
                                        putc(ch, mail);
-                       }
 #if defined(SYSLOG)
                                if (SyslogOutput) {
                                        logbuf[bufidx++] = ch;
@@ -488,7 +487,7 @@ static int child_process(entry * e, user * u, char **jobenv) {
                                        }
                                }
 #endif
-
+                       }
                        /* only close pipe if we opened it -- i.e., we're
                         * mailing...
                         */