renamed exec_argv to eliminate a libc name clash with ksros
This commit is contained in:
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user