diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-11 23:39:49 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 11:04:38 +1000 |
commit | 87ee1f8fe678555474a3ab5b9734744e7da75dd4 (patch) | |
tree | f739af2702bc7e83a50c006acb1f5c159681058a /libbb | |
parent | b09e30e681fc5babddc070590878b81c26ad42a5 (diff) | |
download | busybox-w32-87ee1f8fe678555474a3ab5b9734744e7da75dd4.tar.gz busybox-w32-87ee1f8fe678555474a3ab5b9734744e7da75dd4.tar.bz2 busybox-w32-87ee1f8fe678555474a3ab5b9734744e7da75dd4.zip |
win32: lineedit: split $PATH the Windows way
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 7aca71176..9a04c38bf 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -564,7 +564,11 @@ static int path_parse(char ***p, int flags) | |||
564 | tmp = (char*)pth; | 564 | tmp = (char*)pth; |
565 | npth = 1; /* path component count */ | 565 | npth = 1; /* path component count */ |
566 | while (1) { | 566 | while (1) { |
567 | #if ENABLE_PLATFORM_MINGW32 | ||
568 | tmp = next_path_sep(tmp); | ||
569 | #else | ||
567 | tmp = strchr(tmp, ':'); | 570 | tmp = strchr(tmp, ':'); |
571 | #endif | ||
568 | if (!tmp) | 572 | if (!tmp) |
569 | break; | 573 | break; |
570 | if (*++tmp == '\0') | 574 | if (*++tmp == '\0') |
@@ -576,7 +580,11 @@ static int path_parse(char ***p, int flags) | |||
576 | res[0] = tmp = xstrdup(pth); | 580 | res[0] = tmp = xstrdup(pth); |
577 | npth = 1; | 581 | npth = 1; |
578 | while (1) { | 582 | while (1) { |
583 | #if ENABLE_PLATFORM_MINGW32 | ||
584 | tmp = next_path_sep(tmp); | ||
585 | #else | ||
579 | tmp = strchr(tmp, ':'); | 586 | tmp = strchr(tmp, ':'); |
587 | #endif | ||
580 | if (!tmp) | 588 | if (!tmp) |
581 | break; | 589 | break; |
582 | *tmp++ = '\0'; /* ':' -> '\0' */ | 590 | *tmp++ = '\0'; /* ':' -> '\0' */ |