commit | 07f2f3917a08eea89953c8f0c3f1bc6ef52879b4 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Tue Mar 06 20:28:22 2001 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Tue Mar 06 20:28:22 2001 +0000 |
tree | 035d812d3aad71068af810ccaa93f0b25895c1e8 | |
parent | 1a046d5f9dd627711a6d212963beae3354b68374 [diff] [blame] |
Close open files before calling builtin_exec(). I've tested this and it fixes bug #1121. -Erik
diff --git a/shell/lash.c b/shell/lash.c index 077cb11..57d969e 100644 --- a/shell/lash.c +++ b/shell/lash.c
@@ -300,6 +300,7 @@ if (child->argv[1] == NULL) return EXIT_SUCCESS; /* Really? */ child->argv++; + close_all(); pseudo_exec(child); /* never returns */ }