renamed exec_argv to eliminate a libc name clash with ksros

This commit is contained in:
Todd C. Miller
1994-02-28 05:36:29 +00:00
parent 4f004574c9
commit e28f029382

View File

@@ -343,7 +343,7 @@ void log_error(code)
* *
*/ */
char *exec_argv[] = {"sendmail", char *mail_argv[] = {"sendmail",
"-t", "-t",
ALERTMAIL, ALERTMAIL,
(char *) NULL}; (char *) NULL};
@@ -393,9 +393,9 @@ static void send_mail()
if (!fork()) { /* child */ if (!fork()) { /* child */
(void) close(1); (void) close(1);
#ifdef USE_EXECV #ifdef USE_EXECV
execv(mailer, exec_argv); execv(mailer, mail_argv);
#else /* USE_EXECV */ #else /* USE_EXECV */
execvp(mailer, exec_argv); execvp(mailer, mail_argv);
#endif /* USE_EXECV */ #endif /* USE_EXECV */
/* this should not happen */ /* this should not happen */