]> granicus.if.org Git - cronie/commitdiff
Do not log that syslog will be used instead of sendmail if explicitly requested.
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 26 Nov 2012 14:23:00 +0000 (15:23 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 26 Nov 2012 14:23:00 +0000 (15:23 +0100)
src/cron.c

index 5535017c8f3df11cdfce3f770a7dd0dd293e12cb..49052b6a69d9a5d64937cf281e2da4d07159184a 100644 (file)
@@ -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);
        }