diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-03 09:40:47 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-03 12:28:21 +0100 |
commit | ed8eb229df581c702e44a352aaf4ed47b64bf623 (patch) | |
tree | 953df3a55d3c75b80f6e1553d5b8cfa38fffa614 /include | |
parent | b7115d6ab736c0e9968bec3460ffa5cb12c94965 (diff) | |
download | busybox-w32-ed8eb229df581c702e44a352aaf4ed47b64bf623.tar.gz busybox-w32-ed8eb229df581c702e44a352aaf4ed47b64bf623.tar.bz2 busybox-w32-ed8eb229df581c702e44a352aaf4ed47b64bf623.zip |
ash: reinstate applet name variable after forkshell
When 'sh --forkshell' is invoked the BB_APPLET_<pid> environment
variable is set, but then it's cleared when the environment of the
child process is restored. Reinstate it in reinitvar.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; | |||
2075 | #define bb_dev_null "/dev/null" | 2075 | #define bb_dev_null "/dev/null" |
2076 | #if ENABLE_PLATFORM_MINGW32 | 2076 | #if ENABLE_PLATFORM_MINGW32 |
2077 | #define bb_busybox_exec_path get_busybox_exec_path() | 2077 | #define bb_busybox_exec_path get_busybox_exec_path() |
2078 | extern char *bb_applet_pid(void); | ||
2078 | #else | 2079 | #else |
2079 | extern const char bb_busybox_exec_path[] ALIGN1; | 2080 | extern const char bb_busybox_exec_path[] ALIGN1; |
2080 | #endif | 2081 | #endif |