From f200df0029c9a0f4e82bd35d27c85976d6de013a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 11 Apr 1995 04:38:34 +0000 Subject: [PATCH] send_mail() was calling find_path() which is wrong since find_path() stores cmnd in a static var. Anyhow, it doesn't make much sense since MAILER should always be fully qualified --- logging.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/logging.c b/logging.c index 7f03c7719..8be0bbdb7 100644 --- a/logging.c +++ b/logging.c @@ -410,7 +410,7 @@ static char *mail_argv[] = { "sendmail", static void send_mail() { - char *mailer; + char *mailer = MAILER; char *subject = MAILSUBJECT; int fd[2]; char buf[MAXLOGLEN + BUFSIZ]; @@ -420,11 +420,6 @@ static void send_mail() (void) memset((VOID *)&action, 0, sizeof(action)); #endif /* POSIX_SIGNALS */ - if ((mailer = find_path(MAILER)) == NULL) { - (void) fprintf(stderr, "%s: mailer (%s) not found\n", Argv[0], MAILER); - exit(1); - } - /* catch children as they die */ #ifdef POSIX_SIGNALS action.sa_handler = reapchild;