diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-06 20:28:22 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-06 20:28:22 +0000 |
commit | 2de80d4a8c5c934d1b2b1832f9c35a009e6379b7 (patch) | |
tree | 035d812d3aad71068af810ccaa93f0b25895c1e8 /sh.c | |
parent | 3bdf0f69c47673ce9ed6a07a76322284feaaabc4 (diff) | |
download | busybox-w32-2de80d4a8c5c934d1b2b1832f9c35a009e6379b7.tar.gz busybox-w32-2de80d4a8c5c934d1b2b1832f9c35a009e6379b7.tar.bz2 busybox-w32-2de80d4a8c5c934d1b2b1832f9c35a009e6379b7.zip |
Close open files before calling builtin_exec(). I've tested this
and it fixes bug #1121.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@1984 69ca8d6d-28ef-0310-b511-8ec308f3f277
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) | |||
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 | } |