diff options
author | Ron Yorston <rmy@pobox.com> | 2019-01-08 15:51:04 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-01-08 15:51:04 +0000 |
commit | bade8b3460ea3cf1182cd1bda9faf8b6ccee6a25 (patch) | |
tree | 6b0c855e3d0688e07f512e61d17d76d09c64c6cb /shell | |
parent | 59701e7f6a483d4aad4dc7088c673cd69fe294c8 (diff) | |
download | busybox-w32-bade8b3460ea3cf1182cd1bda9faf8b6ccee6a25.tar.gz busybox-w32-bade8b3460ea3cf1182cd1bda9faf8b6ccee6a25.tar.bz2 busybox-w32-bade8b3460ea3cf1182cd1bda9faf8b6ccee6a25.zip |
ps: add support for the args column
Implement read_cmdline() for WIN32 by storing the command line in
the same way as the applet name.
The applet name is actually used for the comm column which is
truncated to COMM_LEN. Using this as the size of the bb_comm
array avoids the need to calculate MAX_APPLET_NAME_LEN.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index d9a4a8cfa..6d5c55d70 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -14892,7 +14892,6 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
14892 | SetConsoleCtrlHandler(ctrl_handler, TRUE); | 14892 | SetConsoleCtrlHandler(ctrl_handler, TRUE); |
14893 | 14893 | ||
14894 | if (argc == 3 && !strcmp(argv[1], "--fs")) { | 14894 | if (argc == 3 && !strcmp(argv[1], "--fs")) { |
14895 | strcpy(bb_applet_name, "[sh]"); | ||
14896 | forkshell_init(argv[2]); | 14895 | forkshell_init(argv[2]); |
14897 | 14896 | ||
14898 | /* NOTREACHED */ | 14897 | /* NOTREACHED */ |