summaryrefslogtreecommitdiff
path: root/initd
diff options
context:
space:
mode:
Diffstat (limited to 'initd')
-rw-r--r--initd/runlst.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/initd/runlst.c b/initd/runlst.c
index 933daeb..d1311a4 100644
--- a/initd/runlst.c
+++ b/initd/runlst.c
@@ -24,8 +24,6 @@
#include "init.h"
-extern char **environ;
-
static int child_setup(const char *ctty)
{
sigset_t mask;
@@ -65,7 +63,7 @@ static NORETURN void argv_exec(exec_t *e)
argv[i] = ptr;
argv[i] = NULL;
- execve(argv[0], argv, environ);
+ execvp(argv[0], argv);
perror(argv[0]);
exit(EXIT_FAILURE);
}