aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-01-08 15:51:04 +0000
committerRon Yorston <rmy@pobox.com>2019-01-08 15:51:04 +0000
commitbade8b3460ea3cf1182cd1bda9faf8b6ccee6a25 (patch)
tree6b0c855e3d0688e07f512e61d17d76d09c64c6cb /shell
parent59701e7f6a483d4aad4dc7088c673cd69fe294c8 (diff)
downloadbusybox-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.c1
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 */