diff options
author | Ron Yorston <rmy@pobox.com> | 2021-03-01 11:48:04 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-03-01 11:48:04 +0000 |
commit | e2e8e16b465d34759678b8170c44ce62c5b74eb0 (patch) | |
tree | abc31e3e2c1d0de089ae5e1e6d37672394757af9 /libbb/vfork_daemon_rexec.c | |
parent | b5cd41cdf4e6afd475fe34b755f99578e20b08ca (diff) | |
parent | 9b6bcfda0e11c0e73a966a77110f6c68425cff34 (diff) | |
download | busybox-w32-e2e8e16b465d34759678b8170c44ce62c5b74eb0.tar.gz busybox-w32-e2e8e16b465d34759678b8170c44ce62c5b74eb0.tar.bz2 busybox-w32-e2e8e16b465d34759678b8170c44ce62c5b74eb0.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 26e1776a4..885c19f1a 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -109,8 +109,13 @@ int FAST_FUNC run_nofork_applet(int applet_no, char **argv) | |||
109 | char *tmp_argv[argc+1]; | 109 | char *tmp_argv[argc+1]; |
110 | memcpy(tmp_argv, argv, (argc+1) * sizeof(tmp_argv[0])); | 110 | memcpy(tmp_argv, argv, (argc+1) * sizeof(tmp_argv[0])); |
111 | applet_name = tmp_argv[0]; | 111 | applet_name = tmp_argv[0]; |
112 | |||
113 | /* longjmp's (instead of returning) if --help is seen */ | ||
114 | show_usage_if_dash_dash_help(applet_no, argv); | ||
115 | |||
112 | /* Finally we can call NOFORK applet's main() */ | 116 | /* Finally we can call NOFORK applet's main() */ |
113 | rc = applet_main[applet_no](argc, tmp_argv); | 117 | rc = applet_main[applet_no](argc, tmp_argv); |
118 | |||
114 | /* Important for shells: `which CMD` was failing */ | 119 | /* Important for shells: `which CMD` was failing */ |
115 | fflush_all(); | 120 | fflush_all(); |
116 | } else { | 121 | } else { |