hush: "no logic changes" in last commit was not true, fix it up
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Apr 2018 11:10:34 +0000 (13:10 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Apr 2018 11:10:34 +0000 (13:10 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c

index 3ad6a9724b011cb605a804653b7d53067ba44a79..4740929e8df5c10255c991c71b0bb63f46de50b2 100644 (file)
@@ -8419,7 +8419,8 @@ static NOINLINE int run_pipe(struct pipe *pi)
                                 */
                                rcode = run_nofork_applet(n, argv_expanded);
                        }
-               }
+               } else
+                       goto must_fork;
 
                leave_var_nest_level();
                add_vars(old_vars);