From: Tomas Mraz Date: Mon, 26 Nov 2012 14:23:00 +0000 (+0100) Subject: Do not log that syslog will be used instead of sendmail if explicitly requested. X-Git-Tag: cronie1.4.10~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8382601a070a84d4702e6adbf79f6b8d4b940f94;p=cronie Do not log that syslog will be used instead of sendmail if explicitly requested. --- diff --git a/src/cron.c b/src/cron.c index 5535017..49052b6 100644 --- a/src/cron.c +++ b/src/cron.c @@ -263,7 +263,7 @@ int main(int argc, char *argv[]) { } } - if (access("/usr/sbin/sendmail", X_OK) != 0) { + if (!SyslogOutput && MailCmd[0] == '\0' && access("/usr/sbin/sendmail", X_OK) != 0) { SyslogOutput=1; log_it("CRON", pid, "INFO","Syslog will be used instead of sendmail.", 0); }