aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-15 18:27:47 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-15 18:27:47 +0200
commit7dd0ce49531b6340950b4a3eedbef1c958a475d9 (patch)
tree5f220482aeb6c63b761a62fb12af37c6441b6082
parent0ad438b12a97159c43c9bfc75a4ae4873ecf9bf9 (diff)
downloadbusybox-w32-7dd0ce49531b6340950b4a3eedbef1c958a475d9.tar.gz
busybox-w32-7dd0ce49531b6340950b4a3eedbef1c958a475d9.tar.bz2
busybox-w32-7dd0ce49531b6340950b4a3eedbef1c958a475d9.zip
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/Kbuild22
-rw-r--r--libbb/lineedit.c5
2 files changed, 18 insertions, 9 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild
index efd04e322..8c7a189b4 100644
--- a/libbb/Kbuild
+++ b/libbb/Kbuild
@@ -116,30 +116,36 @@ lib-y += xgethostbyname.o
116lib-y += xreadlink.o 116lib-y += xreadlink.o
117lib-y += xrealloc_vector.o 117lib-y += xrealloc_vector.o
118 118
119# conditionally compiled objects: 119# A mix of optimizations (why build stuff we know won't be used)
120lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o 120# and objects which may fail to build (SELinux on selinux-less system)
121lib-$(CONFIG_LOSETUP) += loop.o 121lib-$(CONFIG_SELINUX) += selinux_common.o
122lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o 122lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
123lib-$(CONFIG_FEATURE_ASSUME_UNICODE) += unicode.o
124lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o
125
126lib-$(CONFIG_LOSETUP) += loop.o
127lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
128
123lib-$(CONFIG_ADDGROUP) += update_passwd.o 129lib-$(CONFIG_ADDGROUP) += update_passwd.o
124lib-$(CONFIG_ADDUSER) += update_passwd.o 130lib-$(CONFIG_ADDUSER) += update_passwd.o
125lib-$(CONFIG_DELGROUP) += update_passwd.o 131lib-$(CONFIG_DELGROUP) += update_passwd.o
126lib-$(CONFIG_DELUSER) += update_passwd.o 132lib-$(CONFIG_DELUSER) += update_passwd.o
133
127lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o 134lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o
128lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o 135lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o
129lib-$(CONFIG_CRYPTPW) += pw_encrypt.o 136lib-$(CONFIG_CRYPTPW) += pw_encrypt.o
130lib-$(CONFIG_SULOGIN) += pw_encrypt.o 137lib-$(CONFIG_SULOGIN) += pw_encrypt.o
131lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
132lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o 138lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o
133lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o 139lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o
134lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o 140lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o
141lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
142
135lib-$(CONFIG_DF) += find_mount_point.o 143lib-$(CONFIG_DF) += find_mount_point.o
136lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o 144lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
137lib-$(CONFIG_SELINUX) += selinux_common.o 145lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o
146
138lib-$(CONFIG_HWCLOCK) += rtc.o 147lib-$(CONFIG_HWCLOCK) += rtc.o
139lib-$(CONFIG_RTCWAKE) += rtc.o 148lib-$(CONFIG_RTCWAKE) += rtc.o
140lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o
141
142lib-$(CONFIG_FEATURE_ASSUME_UNICODE) += unicode.o
143 149
144# We shouldn't build xregcomp.c if we don't need it - this ensures we don't 150# We shouldn't build xregcomp.c if we don't need it - this ensures we don't
145# require regex.h to be in the include dir even if we don't need it thereby 151# require regex.h to be in the include dir even if we don't need it thereby
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 8b7ff4f8e..5ebea70d6 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -233,11 +233,13 @@ static size_t load_string(const char *src, int maxsize)
233 safe_strncpy(command_ps, src, maxsize); 233 safe_strncpy(command_ps, src, maxsize);
234 return strlen(command_ps); 234 return strlen(command_ps);
235} 235}
236# if ENABLE_FEATURE_TAB_COMPLETION
236static void save_string(char *dst, int maxsize) 237static void save_string(char *dst, int maxsize)
237{ 238{
238 safe_strncpy(dst, command_ps, maxsize); 239 safe_strncpy(dst, command_ps, maxsize);
239} 240}
240#define BB_PUTCHAR(c) bb_putchar(c) 241# endif
242# define BB_PUTCHAR(c) bb_putchar(c)
241#endif 243#endif
242 244
243 245
@@ -683,6 +685,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
683#undef dirbuf 685#undef dirbuf
684} 686}
685 687
688//FIXME: HUH??? How about Unicode?
686#define QUOT (UCHAR_MAX+1) 689#define QUOT (UCHAR_MAX+1)
687 690
688#define collapse_pos(is, in) do { \ 691#define collapse_pos(is, in) do { \