diff options
author | Ron Yorston <rmy@pobox.com> | 2018-02-13 11:54:43 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-02-13 11:54:43 +0000 |
commit | 834805db9fe525dff26267fb7ba2794cee3ed51a (patch) | |
tree | 3354ca2d465dce743685d0a4b41936d91a2b4d37 /configs | |
parent | 5bf7067e61f202f023d70f38d14bb66799a27074 (diff) | |
download | busybox-w32-834805db9fe525dff26267fb7ba2794cee3ed51a.tar.gz busybox-w32-834805db9fe525dff26267fb7ba2794cee3ed51a.tar.bz2 busybox-w32-834805db9fe525dff26267fb7ba2794cee3ed51a.zip |
win32: always use safe API calls to manipulate environment
It turns out that with the new toolchain safe API calls work on all
all platforms. Even the original code from commit fa147bd7e works
on Windows XP when built with the new tools.
- Remove the unsafe environment manipulation via the environ array
- Microsoft's putenv takes a copy of its argument so the string
can be freed
- Rewrite some routines and add more error checking
Diffstat (limited to 'configs')
-rw-r--r-- | configs/mingw32_defconfig | 1 | ||||
-rw-r--r-- | configs/mingw64_defconfig | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig index 4adc4471e..5ed8cd41f 100644 --- a/configs/mingw32_defconfig +++ b/configs/mingw32_defconfig | |||
@@ -20,7 +20,6 @@ CONFIG_FEATURE_VERBOSE_USAGE=y | |||
20 | CONFIG_FEATURE_COMPRESS_USAGE=y | 20 | CONFIG_FEATURE_COMPRESS_USAGE=y |
21 | CONFIG_LFS=y | 21 | CONFIG_LFS=y |
22 | # CONFIG_GLOBBING is not set | 22 | # CONFIG_GLOBBING is not set |
23 | # CONFIG_SAFE_ENV is not set | ||
24 | # CONFIG_PAM is not set | 23 | # CONFIG_PAM is not set |
25 | # CONFIG_FEATURE_DEVPTS is not set | 24 | # CONFIG_FEATURE_DEVPTS is not set |
26 | # CONFIG_FEATURE_UTMP is not set | 25 | # CONFIG_FEATURE_UTMP is not set |
diff --git a/configs/mingw64_defconfig b/configs/mingw64_defconfig index fdc755d93..2c189700a 100644 --- a/configs/mingw64_defconfig +++ b/configs/mingw64_defconfig | |||
@@ -20,7 +20,6 @@ CONFIG_FEATURE_VERBOSE_USAGE=y | |||
20 | CONFIG_FEATURE_COMPRESS_USAGE=y | 20 | CONFIG_FEATURE_COMPRESS_USAGE=y |
21 | CONFIG_LFS=y | 21 | CONFIG_LFS=y |
22 | # CONFIG_GLOBBING is not set | 22 | # CONFIG_GLOBBING is not set |
23 | CONFIG_SAFE_ENV=y | ||
24 | # CONFIG_PAM is not set | 23 | # CONFIG_PAM is not set |
25 | # CONFIG_FEATURE_DEVPTS is not set | 24 | # CONFIG_FEATURE_DEVPTS is not set |
26 | # CONFIG_FEATURE_UTMP is not set | 25 | # CONFIG_FEATURE_UTMP is not set |