changed to use new find_path() parameter passing

This commit is contained in:
Todd C. Miller
1995-01-16 21:33:39 +00:00
parent 4fa8a93f62
commit 9116e4558f

View File

@@ -370,7 +370,7 @@ static char *mail_argv[] = { "sendmail",
static void send_mail() static void send_mail()
{ {
char *mailer = MAILER; char *mailer;
char *subject = MAILSUBJECT; char *subject = MAILSUBJECT;
int fd[2]; int fd[2];
char buf[MAXLOGLEN + 1024]; char buf[MAXLOGLEN + 1024];
@@ -380,8 +380,8 @@ static void send_mail()
(void) bzero((char *)(&action), sizeof(action)); (void) bzero((char *)(&action), sizeof(action));
#endif /* POSIX_SIGNALS */ #endif /* POSIX_SIGNALS */
if ((mailer = find_path(mailer)) == NULL) { if (find_path(MAILER, &mailer, NULL) == FALSE) {
(void) fprintf(stderr, "%s: mailer (%s) not found\n", Argv[0], mailer); (void) fprintf(stderr, "%s: mailer (%s) not found\n", Argv[0], MAILER);
exit(1); exit(1);
} }