aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-01-29 08:28:59 +0000
committerRon Yorston <rmy@pobox.com>2023-01-29 08:28:59 +0000
commit6295322661ac6c2ed90af69cba0003c6e37f9700 (patch)
tree44b70fdf880c37e5168ea16f2fa684b5debbadbc /arch
parent82f0d19b101271889b0b2ebe8cdb2f5eb4f64e6c (diff)
downloadbusybox-w32-6295322661ac6c2ed90af69cba0003c6e37f9700.tar.gz
busybox-w32-6295322661ac6c2ed90af69cba0003c6e37f9700.tar.bz2
busybox-w32-6295322661ac6c2ed90af69cba0003c6e37f9700.zip
win32: provide a default value for HOME
The busybox-w32 shell initialises HOME when it starts. However, if applets are run outside the environment provided by the shell they may find HOME is unset. This caused a problem for 'vi' as it was unable to locate its .exrc. If HOME isn't available in the environment make getenv(3) provide a sensible default value. The shell must use the *real* getenv(3) when determining if HOME is already set. Also, unrelated to the above, the shell shouldn't treat failure of getpwuid(3) as a fatal error. Costs 72-80 bytes.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions