diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c index 778d8bd9d..c7c514417 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -14430,7 +14430,7 @@ init(void) | |||
14430 | * variable called something other than PATH. This suggests we | 14430 | * variable called something other than PATH. This suggests we |
14431 | * haven't been invoked from an earlier instance of BusyBox. | 14431 | * haven't been invoked from an earlier instance of BusyBox. |
14432 | */ | 14432 | */ |
14433 | char *start, *end, *s; | 14433 | char *start, *end; |
14434 | struct passwd *pw; | 14434 | struct passwd *pw; |
14435 | 14435 | ||
14436 | for (envp = environ; envp && *envp; envp++) { | 14436 | for (envp = environ; envp && *envp; envp++) { |
@@ -14449,11 +14449,7 @@ init(void) | |||
14449 | 14449 | ||
14450 | /* convert backslashes to forward slashes in value */ | 14450 | /* convert backslashes to forward slashes in value */ |
14451 | if (!xp) { | 14451 | if (!xp) { |
14452 | for ( s=end+1; *s; ++s ) { | 14452 | convert_slashes(end+1); |
14453 | if ( *s == '\\' ) { | ||
14454 | *s = '/'; | ||
14455 | } | ||
14456 | } | ||
14457 | } | 14453 | } |
14458 | 14454 | ||
14459 | /* check for invalid characters in name */ | 14455 | /* check for invalid characters in name */ |