aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/run_parts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/run_parts.c b/libbb/run_parts.c
index 58645660b..171d93793 100644
--- a/libbb/run_parts.c
+++ b/libbb/run_parts.c
@@ -47,7 +47,7 @@ static int valid_name(const struct dirent *d)
47 * test_mode = 2 means to fail siliently on missing directories 47 * test_mode = 2 means to fail siliently on missing directories
48 */ 48 */
49 49
50extern int run_parts(char **args, const unsigned char test_mode) 50extern int run_parts(char **args, const unsigned char test_mode, char **env)
51{ 51{
52 struct dirent **namelist = 0; 52 struct dirent **namelist = 0;
53 struct stat st; 53 struct stat st;
@@ -92,7 +92,7 @@ extern int run_parts(char **args, const unsigned char test_mode)
92 bb_perror_msg_and_die("failed to fork"); 92 bb_perror_msg_and_die("failed to fork");
93 } else if (!pid) { 93 } else if (!pid) {
94 args[0] = filename; 94 args[0] = filename;
95 execv(filename, args); 95 execve(filename, args, env);
96 exec_errno = errno; 96 exec_errno = errno;
97 _exit(1); 97 _exit(1);
98 } 98 }