aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 11:06:35 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 11:06:35 +1000
commit87911f4fcd86f7abc0aefba8e9cbec2ac9d127e4 (patch)
treec91a4a9a048f3cc2bdae47fa61a02db7a108170d /libbb
parentba3cea41689d211093d914212de048cc06d976ce (diff)
parent9375ca983262075d8420fd0d88d00a088916fc10 (diff)
downloadbusybox-w32-87911f4fcd86f7abc0aefba8e9cbec2ac9d127e4.tar.gz
busybox-w32-87911f4fcd86f7abc0aefba8e9cbec2ac9d127e4.tar.bz2
busybox-w32-87911f4fcd86f7abc0aefba8e9cbec2ac9d127e4.zip
Merge branch 'ash'
Diffstat (limited to 'libbb')
-rw-r--r--libbb/Kbuild2
-rw-r--r--libbb/lineedit.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild
index eb3cd5039..a8a1da1f9 100644
--- a/libbb/Kbuild
+++ b/libbb/Kbuild
@@ -74,7 +74,6 @@ lib-y += procps.o
74lib-y += progress.o 74lib-y += progress.o
75lib-y += ptr_to_globals.o 75lib-y += ptr_to_globals.o
76lib-y += read.o 76lib-y += read.o
77lib-y += read_key.o
78lib-y += recursive_action.o 77lib-y += recursive_action.o
79lib-y += remove_file.o 78lib-y += remove_file.o
80lib-y += run_shell.o 79lib-y += run_shell.o
@@ -115,6 +114,7 @@ lib-$(CONFIG_PLATFORM_POSIX) += kernel_version.o
115lib-$(CONFIG_PLATFORM_POSIX) += login.o 114lib-$(CONFIG_PLATFORM_POSIX) += login.o
116lib-$(CONFIG_PLATFORM_POSIX) += makedev.o 115lib-$(CONFIG_PLATFORM_POSIX) += makedev.o
117lib-$(CONFIG_PLATFORM_POSIX) += match_fstype.o 116lib-$(CONFIG_PLATFORM_POSIX) += match_fstype.o
117lib-$(CONFIG_PLATFORM_POSIX) += read_key.o
118lib-$(CONFIG_PLATFORM_POSIX) += safe_gethostname.o 118lib-$(CONFIG_PLATFORM_POSIX) += safe_gethostname.o
119lib-$(CONFIG_PLATFORM_POSIX) += signals.o 119lib-$(CONFIG_PLATFORM_POSIX) += signals.o
120lib-$(CONFIG_PLATFORM_POSIX) += udp_io.o 120lib-$(CONFIG_PLATFORM_POSIX) += udp_io.o
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index dc90846f9..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' */
@@ -1781,6 +1789,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
1781 1789
1782 INIT_S(); 1790 INIT_S();
1783 1791
1792#if !ENABLE_PLATFORM_MINGW32
1784 if (tcgetattr(STDIN_FILENO, &initial_settings) < 0 1793 if (tcgetattr(STDIN_FILENO, &initial_settings) < 0
1785 || !(initial_settings.c_lflag & ECHO) 1794 || !(initial_settings.c_lflag & ECHO)
1786 ) { 1795 ) {
@@ -1794,6 +1803,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
1794 DEINIT_S(); 1803 DEINIT_S();
1795 return len; 1804 return len;
1796 } 1805 }
1806#endif
1797 1807
1798 init_unicode(); 1808 init_unicode();
1799 1809