From: Todd C. Miller Date: Sat, 4 Sep 1993 18:09:20 +0000 (+0000) Subject: now uses execve() X-Git-Tag: SUDO_1_3_0~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d48690a2e1504f5d8e7ca58c1d9f90baa51db20;p=sudo now uses execve() --- diff --git a/logging.c b/logging.c index f5f8c9db0..e25a6188e 100644 --- a/logging.c +++ b/logging.c @@ -86,7 +86,7 @@ sprintf( logline, "%8.8s : ", user ); #endif p = logline + strlen(logline); /* we need a pointer to the end of logline */ -#ifdef hpux +#ifdef USE_CWD getcwd(cwd, (size_t)(MAXPATHLEN+1)); /* so we know where we are... */ #else getwd(cwd); /* so we know where we are... */ @@ -285,9 +285,9 @@ if ( ! fork () ) { /* child parent */ (void) close(1); - execv ( mailer, exec_argv ); + execve ( mailer, exec_argv, Envp ); /* this should not happen */ - perror( "execv"); + perror ("execve"); exit (1); }