aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-02-16 10:45:12 +0000
committerRon Yorston <rmy@pobox.com>2012-02-16 10:45:12 +0000
commitd5891f95ce623434e9b479e1da6f10213d3ecd76 (patch)
treea734308da289b7129f3949dfdb584b880722a5da
parent33d2e753332f0466a73e3a023dfc544a6e6eaeb4 (diff)
downloadbusybox-w32-d5891f95ce623434e9b479e1da6f10213d3ecd76.tar.gz
busybox-w32-d5891f95ce623434e9b479e1da6f10213d3ecd76.tar.bz2
busybox-w32-d5891f95ce623434e9b479e1da6f10213d3ecd76.zip
Replace backslash with forward slash in environment
-rw-r--r--shell/ash.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 1061e55c2..fedf86002 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13425,6 +13425,13 @@ init(void)
13425 } 13425 }
13426#endif 13426#endif
13427 for (envp = environ; envp && *envp; envp++) { 13427 for (envp = environ; envp && *envp; envp++) {
13428#if ENABLE_PLATFORM_MINGW32
13429 char *s;
13430
13431 while ((s=strchr(*envp, '\\'))) {
13432 *s = '/';
13433 }
13434#endif
13428 if (strchr(*envp, '=')) { 13435 if (strchr(*envp, '=')) {
13429 setvareq(*envp, VEXPORT|VTEXTFIXED); 13436 setvareq(*envp, VEXPORT|VTEXTFIXED);
13430 } 13437 }