From 33a914da6bba61e27aee82675276bf1dccc52966 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 4 Apr 2018 19:55:09 +0100 Subject: ps: obtain applet names from other BusyBox processes Remove the code which passed applet names to child processes using environment variables. This only allowed ps to display names for its ancestors. Instead attempt to read applet names from the memory of unrelated processes. The Microsoft documentation alone wasn't enough to figure out how to do this. Additional hints from: https://stackoverflow.com/questions/4298331/exe-or-dll-image-base-address https://stackoverflow.com/questions/14467229/get-base-address-of-process --- shell/ash.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 2a1ddac39..6d24fb55a 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14975,13 +14975,6 @@ reinitvar(void) varinit[i].var_func = varinit_data[i].var_func; } vlineno.var_text = linenovar; - - /* - * BB_APPLET_ was correct when 'sh --forkshell' was started - * but has now been overwritten by the environment from the forkshell - * data block. Reinstate it. - */ - setvareq(bb_applet_pid(), VEXPORT); } /* FIXME: should consider running forkparent() and forkchild() */ -- cgit v1.2.3-55-g6feb