From: Marcela Mašláňová Date: Fri, 24 Jun 2011 10:10:11 +0000 (+0200) Subject: Cron writes job output to syslog incorrectly. When cron is invoked in a way to print... X-Git-Tag: cronie1.4.8~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2657c7aea0c5178fb81fccf7ed5457fd01927ee2;p=cronie Cron writes job output to syslog incorrectly. When cron is invoked in a way to print job output to syslog, it does print only the first character of the output. Author: Vitezslav Cizek Signed-off-by: Marcela Mašláňová --- diff --git a/src/do_command.c b/src/do_command.c index 44510d5..86e8a89 100644 --- a/src/do_command.c +++ b/src/do_command.c @@ -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... */