2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

now uses execve()

This commit is contained in:
Todd C. Miller
1993-09-04 18:09:20 +00:00
parent 51deb28dbb
commit 4d48690a2e

View File

@@ -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);
}