Fix ash exec (noted by Arne Bernin).
authorMatt Kraai <kraai@debian.org>
Mon, 27 Aug 2001 15:08:57 +0000 (15:08 -0000)
committerMatt Kraai <kraai@debian.org>
Mon, 27 Aug 2001 15:08:57 +0000 (15:08 -0000)
Changelog
applets.c
applets/applets.c

index bd149b07bfefaf429ee129ae5d2c57a5851f0fee..1585887f5b01dfb01ea60a654e638b30fabf7e80 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -18,6 +18,7 @@
        * Matt Kraai
            -- Fix sed s/[/]// handling (closes: #1208).
            -- Fix `-/bin/sh' invocation (closes: #1209).
+           -- Fix ash exec (noted by Arne Bernin).
 
 
         -Erik Andersen, --not yet released--
index ca2de87d4dd2845ef65dfdd45143c66d8084b010..ffa806ebc0a3586b3026f9e2d6a9ad62aed3b914 100644 (file)
--- a/applets.c
+++ b/applets.c
@@ -99,7 +99,7 @@ void run_applet_by_name(const char *name, int argc, char **argv)
        if (recurse_level == 1) {
                run_applet_by_name("busybox", argc, argv);
        }
-       recurse_level = 0;
+       recurse_level--;
 }
 
 
index ca2de87d4dd2845ef65dfdd45143c66d8084b010..ffa806ebc0a3586b3026f9e2d6a9ad62aed3b914 100644 (file)
@@ -99,7 +99,7 @@ void run_applet_by_name(const char *name, int argc, char **argv)
        if (recurse_level == 1) {
                run_applet_by_name("busybox", argc, argv);
        }
-       recurse_level = 0;
+       recurse_level--;
 }