diff options
author | Ron Yorston <rmy@pobox.com> | 2021-11-04 12:27:45 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-11-04 12:27:45 +0000 |
commit | 9e12622a8706a0d23a3ff8792773e73b0d6108b4 (patch) | |
tree | fdbbfc2f59676cf9e3ce346f977adacb80711314 /libbb | |
parent | 42a3e960faaff1458c7ca3c138d1847b1a104089 (diff) | |
download | busybox-w32-9e12622a8706a0d23a3ff8792773e73b0d6108b4.tar.gz busybox-w32-9e12622a8706a0d23a3ff8792773e73b0d6108b4.tar.bz2 busybox-w32-9e12622a8706a0d23a3ff8792773e73b0d6108b4.zip |
win32: move UCRT hack to process.c
Only apply the UCRT hack if we're about to call spawnve() with
a non-NULL environment pointer.
Add the pid of the process to the name of the environment variable
to provide greater assurance that the environment will be changed.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index f0ed85215..6c0be4a83 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -1248,9 +1248,6 @@ int main(int argc UNUSED_PARAM, char **argv) | |||
1248 | /* Ignore critical errors, such as calling GetVolumeInformation() on | 1248 | /* Ignore critical errors, such as calling GetVolumeInformation() on |
1249 | * a floppy or CDROM drive with no media. */ | 1249 | * a floppy or CDROM drive with no media. */ |
1250 | SetErrorMode(SEM_FAILCRITICALERRORS); | 1250 | SetErrorMode(SEM_FAILCRITICALERRORS); |
1251 | # ifdef _UCRT | ||
1252 | SetEnvironmentVariable("BB_HELLO", "world"); | ||
1253 | # endif | ||
1254 | #endif | 1251 | #endif |
1255 | 1252 | ||
1256 | #if defined(__MINGW64_VERSION_MAJOR) | 1253 | #if defined(__MINGW64_VERSION_MAJOR) |