From 64a1dc3fcfae06cf36adf9c1d0ebcffbd63eabb4 Mon Sep 17 00:00:00 2001 From: Jason Edgecombe Date: Mon, 28 Jul 2008 13:17:41 +0000 Subject: [PATCH] STABLE14-pinstall-copy-env-20080728 LICENSE IPL10 FIXES 108449 copy environment to children --- src/pinstall/install.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/pinstall/install.c b/src/pinstall/install.c index 6cb0f1223..ade14507a 100644 --- a/src/pinstall/install.c +++ b/src/pinstall/install.c @@ -183,9 +183,6 @@ quickStrip(char *iname, char *oname, int ignored, int copy_only) { int pid; pid_t status; - static char *env[] = { - 0, - }; static char *strip[] = { "strip", 0, 0, }; @@ -204,7 +201,7 @@ quickStrip(char *iname, char *oname, int ignored, int copy_only) case 0: /* child */ copy[1] = iname; copy[2] = oname; - execve("/bin/cp", copy, env); + execv("/bin/cp", copy); perror("/bin/cp"); exit(1); @@ -249,7 +246,7 @@ quickStrip(char *iname, char *oname, int ignored, int copy_only) #else #define STRIP_BIN "/bin/strip" #endif - execve(STRIP_BIN, strip, env); + execv(STRIP_BIN, strip); perror(STRIP_BIN); exit(1); @@ -275,9 +272,6 @@ static int quickStrip(char *iname, char *oname, int ignored, int copy_only) { int pid, status; - static char *env[] = { - 0, - }; static char *strip[] = { "strip", 0, 0, }; @@ -296,7 +290,7 @@ quickStrip(char *iname, char *oname, int ignored, int copy_only) case 0: /* child */ copy[1] = iname; copy[2] = oname; - execve("/bin/cp", copy, env); + execv("/bin/cp", copy); perror("/bin/cp"); exit(1); @@ -334,7 +328,7 @@ quickStrip(char *iname, char *oname, int ignored, int copy_only) case 0: /* child */ strip[1] = oname; - execve("/bin/strip", strip, env); + execv("/bin/strip", strip); perror("/bin/strip"); exit(1); -- 2.39.5