summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-11-27 13:05:14 +0000
committerEd Schouten <ed@FreeBSD.org>2009-11-27 13:05:14 +0000
commitf67d07f0e1236d9cbc2a28508b3da08f41ca7178 (patch)
tree2c11ccaa7231e474ab629db20bd0800fdb88d2c7
parent1439785421f62d874d5758d474d932c7c6f4e37e (diff)
downloadsrc-test2-f67d07f0e1236d9cbc2a28508b3da08f41ca7178.tar.gz
src-test2-f67d07f0e1236d9cbc2a28508b3da08f41ca7178.zip
Notes
-rw-r--r--lib/libc/gen/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c
index 985a09a4fcf7..7ffce90d32fc 100644
--- a/lib/libc/gen/exec.c
+++ b/lib/libc/gen/exec.c
@@ -209,7 +209,7 @@ execvPe(name, path, argv, envp)
bcopy(name, buf + lp + 1, ln);
buf[lp + ln + 1] = '\0';
-retry: (void)_execve(bp, argv, environ);
+retry: (void)_execve(bp, argv, envp);
switch (errno) {
case E2BIG:
goto done;
@@ -228,7 +228,7 @@ retry: (void)_execve(bp, argv, environ);
memp[0] = "sh";
memp[1] = bp;
bcopy(argv + 1, memp + 2, cnt * sizeof(char *));
- (void)_execve(_PATH_BSHELL, memp, environ);
+ (void)_execve(_PATH_BSHELL, memp, envp);
goto done;
case ENOMEM:
goto done;