diff options
author | Eric Andersen | 2001-03-06 20:28:22 +0000 |
---|---|---|
committer | Eric Andersen | 2001-03-06 20:28:22 +0000 |
commit | 07f2f3917a08eea89953c8f0c3f1bc6ef52879b4 (patch) | |
tree | 035d812d3aad71068af810ccaa93f0b25895c1e8 /sh.c | |
parent | 1a046d5f9dd627711a6d212963beae3354b68374 (diff) | |
download | busybox-07f2f3917a08eea89953c8f0c3f1bc6ef52879b4.zip busybox-07f2f3917a08eea89953c8f0c3f1bc6ef52879b4.tar.gz |
Close open files before calling builtin_exec(). I've tested this
and it fixes bug #1121.
-Erik
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -300,6 +300,7 @@ static int builtin_exec(struct child_prog *child) if (child->argv[1] == NULL) return EXIT_SUCCESS; /* Really? */ child->argv++; + close_all(); pseudo_exec(child); /* never returns */ } |