diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 1995-01-16 21:33:39 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 1995-01-16 21:33:39 +0000 |
commit | 77c40c271fa371634903b467b76aa2099bd4d1c3 (patch) | |
tree | b1bd4965cedbeaaf49e034bf6bd4dad413b7afeb /logging.c | |
parent | 4cb1c4ea1feaef1c1a92975443c3a68fb4f8cabc (diff) | |
download | sudo-77c40c271fa371634903b467b76aa2099bd4d1c3.tar.gz |
changed to use new find_path() parameter passing
Diffstat (limited to 'logging.c')
-rw-r--r-- | logging.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |