]> granicus.if.org Git - sudo/commitdiff
now uses execve()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Sep 1993 18:09:20 +0000 (18:09 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Sep 1993 18:09:20 +0000 (18:09 +0000)
logging.c

index f5f8c9db024a8b5cdd4d658e43f31a74eca47321..e25a6188e666843a6db91e45ad0364a1f98e9ae1 100644 (file)
--- 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);
 
     }