From 2de80d4a8c5c934d1b2b1832f9c35a009e6379b7 Mon Sep 17 00:00:00 2001 From: andersen Date: Tue, 6 Mar 2001 20:28:22 +0000 Subject: 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 --- sh.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sh.c') diff --git a/sh.c b/sh.c index 077cb1182..57d969e40 100644 --- a/sh.c +++ b/sh.c @@ -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 */ } -- cgit v1.2.3-55-g6feb