Skip to content

Commit

Permalink
Replace backslash with forward slash in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
rmyorston committed Feb 16, 2012
1 parent 33d2e75 commit d5891f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shell/ash.c
Original file line number Diff line number Diff line change
Expand Up @@ -13425,6 +13425,13 @@ init(void)
}
#endif
for (envp = environ; envp && *envp; envp++) {
#if ENABLE_PLATFORM_MINGW32
char *s;

while ((s=strchr(*envp, '\\'))) {
*s = '/';
}
#endif
if (strchr(*envp, '=')) {
setvareq(*envp, VEXPORT|VTEXTFIXED);
}
Expand Down

0 comments on commit d5891f9

Please # to comment.