aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-08-21 09:42:00 +0100
committerRon Yorston <rmy@pobox.com>2020-08-21 09:59:10 +0100
commit90418d34c5517691fa78d90e632fa5f9f6b35c03 (patch)
tree92f6931d18b74e11db1905dd6a37eb25bff600aa /shell
parent871115c02a7adead20939c3f68371d92127861b8 (diff)
downloadbusybox-w32-90418d34c5517691fa78d90e632fa5f9f6b35c03.tar.gz
busybox-w32-90418d34c5517691fa78d90e632fa5f9f6b35c03.tar.bz2
busybox-w32-90418d34c5517691fa78d90e632fa5f9f6b35c03.zip
win32: allow putenv() to set empty values
WIN32 _putenv() can't set an environment variable with an empty value because 'NAME=' is treated as a request to delete the variable. Allow mingw_putenv() to set an empty value by first setting a fake value and then truncating it. This problem has always been present in mingw_putenv() but it became particularly pressing when ash started treating all applets as NOEXEC. The environment of NOEXEC applets is created by clearing the current environment and using putenv() to set a new one from the shell variables. Empty variable were not being set. See GitHub issue #197.
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions