aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-10-19 17:19:04 +0100
committerRon Yorston <rmy@pobox.com>2016-10-20 12:02:49 +0100
commit3528bee569f518dcb66e1343dd808b437499db84 (patch)
treead79485776901b8c34d4b6d6dbd2ee7a846f260f /shell
parent03aa1e26b8885cd0ae28b676bed0e646e93433fb (diff)
downloadbusybox-w32-3528bee569f518dcb66e1343dd808b437499db84.tar.gz
busybox-w32-3528bee569f518dcb66e1343dd808b437499db84.tar.bz2
busybox-w32-3528bee569f518dcb66e1343dd808b437499db84.zip
Post-merge fixes
Update default configurations; rename ststrdup -> sstrdup; fix status returns in evalcommand.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 02e76c0ae..1485a35c9 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2650,7 +2650,7 @@ updatepwd(const char *dir)
2650 int absdrive = *dir && dir[1] == ':'; 2650 int absdrive = *dir && dir[1] == ':';
2651 int abspath = absdrive ? is_path_sep(dir[2]) : is_path_sep(*dir); 2651 int abspath = absdrive ? is_path_sep(dir[2]) : is_path_sep(*dir);
2652 2652
2653 cdcomppath = ststrdup(dir); 2653 cdcomppath = sstrdup(dir);
2654 STARTSTACKSTR(new); 2654 STARTSTACKSTR(new);
2655 if (!absdrive && curdir == nullstr) 2655 if (!absdrive && curdir == nullstr)
2656 return 0; 2656 return 0;
@@ -10014,7 +10014,7 @@ evalcommand(union node *cmd, int flags)
10014 if (applet_no >= 0 && APPLET_IS_NOFORK(applet_no)) { 10014 if (applet_no >= 0 && APPLET_IS_NOFORK(applet_no)) {
10015 listsetvar(varlist.list, VEXPORT|VSTACK); 10015 listsetvar(varlist.list, VEXPORT|VSTACK);
10016 /* run <applet>_main() */ 10016 /* run <applet>_main() */
10017 exitstatus = run_nofork_applet(applet_no, argv); 10017 status = run_nofork_applet(applet_no, argv);
10018 break; 10018 break;
10019 } 10019 }
10020#endif 10020#endif
@@ -10036,7 +10036,7 @@ evalcommand(union node *cmd, int flags)
10036 jp = makejob(/*cmd,*/ 1); 10036 jp = makejob(/*cmd,*/ 1);
10037 if (spawn_forkshell(jp, &fs, FORK_FG) < 0) 10037 if (spawn_forkshell(jp, &fs, FORK_FG) < 0)
10038 ash_msg_and_raise_error("unable to spawn shell"); 10038 ash_msg_and_raise_error("unable to spawn shell");
10039 exitstatus = waitforjob(jp); 10039 status = waitforjob(jp);
10040 INT_ON; 10040 INT_ON;
10041 TRACE(("forked child exited with %d\n", exitstatus)); 10041 TRACE(("forked child exited with %d\n", exitstatus));
10042 break; 10042 break;