From 2657c7aea0c5178fb81fccf7ed5457fd01927ee2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Fri, 24 Jun 2011 12:10:11 +0200 Subject: [PATCH] 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcela Mašláňová --- src/do_command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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... */ -- 2.40.0