aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ef3f7933a..349e9deb8 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13475,6 +13475,12 @@ init(void)
13475 for (start = *envp;start < end;start++) 13475 for (start = *envp;start < end;start++)
13476 *start = toupper(*start); 13476 *start = toupper(*start);
13477 13477
13478 /* skip conversion of variables known to cause problems */
13479 if ( strncmp(*envp, "SYSTEMROOT=", 11) == 0 ||
13480 strncmp(*envp, "COMSPEC=", 8) == 0 ) {
13481 continue;
13482 }
13483
13478 /* convert backslashes to forward slashes */ 13484 /* convert backslashes to forward slashes */
13479 if (!xp) { 13485 if (!xp) {
13480 for ( ++end; *end; ++end ) { 13486 for ( ++end; *end; ++end ) {