diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-06 20:28:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-06 20:28:22 +0000 |
commit | 07f2f3917a08eea89953c8f0c3f1bc6ef52879b4 (patch) | |
tree | 035d812d3aad71068af810ccaa93f0b25895c1e8 /shell/lash.c | |
parent | 1a046d5f9dd627711a6d212963beae3354b68374 (diff) | |
download | busybox-w32-07f2f3917a08eea89953c8f0c3f1bc6ef52879b4.tar.gz busybox-w32-07f2f3917a08eea89953c8f0c3f1bc6ef52879b4.tar.bz2 busybox-w32-07f2f3917a08eea89953c8f0c3f1bc6ef52879b4.zip |
Close open files before calling builtin_exec(). I've tested this
and it fixes bug #1121.
-Erik
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/lash.c b/shell/lash.c index 077cb1182..57d969e40 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -300,6 +300,7 @@ static int builtin_exec(struct child_prog *child) | |||
300 | if (child->argv[1] == NULL) | 300 | if (child->argv[1] == NULL) |
301 | return EXIT_SUCCESS; /* Really? */ | 301 | return EXIT_SUCCESS; /* Really? */ |
302 | child->argv++; | 302 | child->argv++; |
303 | close_all(); | ||
303 | pseudo_exec(child); | 304 | pseudo_exec(child); |
304 | /* never returns */ | 305 | /* never returns */ |
305 | } | 306 | } |