From 847fa779aff2592e842654b95dc2c321885e1eec Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 28 Jan 2008 22:45:43 +0000 Subject: *: tidy up usage of char **environ --- runit/runsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runit/runsv.c') diff --git a/runit/runsv.c b/runit/runsv.c index 84f5193f5..e9a074580 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -279,7 +279,7 @@ static unsigned custom(struct svdir *s, char c) warn_cannot("setup stdout for control/?"); prog[0] = a; prog[1] = NULL; - execve(a, prog, environ); + execv(a, prog); fatal_cannot("run control/?"); } while (safe_waitpid(pid, &w, 0) == -1) { -- cgit v1.2.3