]> granicus.if.org Git - sudo/commitdiff
changed to use new find_path() parameter passing
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 16 Jan 1995 21:33:39 +0000 (21:33 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 16 Jan 1995 21:33:39 +0000 (21:33 +0000)
logging.c

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