aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-03-18 19:57:54 +0000
committerRon Yorston <rmy@pobox.com>2018-03-18 19:57:54 +0000
commit411d8b4cf9887c108853a25388837c1aaf31edce (patch)
treebd88371b4720d19fe08209a800c8576d46fa44fd /shell
parent2cbc61ac77a4e661ad97143c3f53db55506d8349 (diff)
downloadbusybox-w32-411d8b4cf9887c108853a25388837c1aaf31edce.tar.gz
busybox-w32-411d8b4cf9887c108853a25388837c1aaf31edce.tar.bz2
busybox-w32-411d8b4cf9887c108853a25388837c1aaf31edce.zip
win32: add a function to convert backslashes to slashes
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c8
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 */