From ed8eb229df581c702e44a352aaf4ed47b64bf623 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 3 Apr 2018 09:40:47 +0100 Subject: ash: reinstate applet name variable after forkshell When 'sh --forkshell' is invoked the BB_APPLET_ environment variable is set, but then it's cleared when the environment of the child process is restored. Reinstate it in reinitvar. --- include/libbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index af234e7b0..da3459224 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -2075,6 +2075,7 @@ extern const char bb_path_wtmp_file[] ALIGN1; #define bb_dev_null "/dev/null" #if ENABLE_PLATFORM_MINGW32 #define bb_busybox_exec_path get_busybox_exec_path() +extern char *bb_applet_pid(void); #else extern const char bb_busybox_exec_path[] ALIGN1; #endif -- cgit v1.2.3-55-g6feb