From: Denys Vlasenko Date: Thu, 4 Jan 2018 14:21:25 +0000 (+0100) Subject: libbb: compile obscure() only if FEATURE_PASSWD_WEAK_CHECK=y X-Git-Tag: 1_29_0~397 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7367a949a6a81d71d524f0635a212371120df4e0;p=oweals%2Fbusybox.git libbb: compile obscure() only if FEATURE_PASSWD_WEAK_CHECK=y Signed-off-by: Denys Vlasenko --- diff --git a/libbb/Kbuild.src b/libbb/Kbuild.src index 6e6d71ad5..8c9ba8cca 100644 --- a/libbb/Kbuild.src +++ b/libbb/Kbuild.src @@ -143,7 +143,8 @@ lib-$(CONFIG_DELGROUP) += update_passwd.o lib-$(CONFIG_DELUSER) += update_passwd.o lib-$(CONFIG_FTPD) += pw_encrypt.o correct_password.o -lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o obscure.o +lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o +lib-$(CONFIG_FEATURE_PASSWD_WEAK_CHECK) += obscure.o lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o lib-$(CONFIG_CRYPTPW) += pw_encrypt.o lib-$(CONFIG_MKPASSWD) += pw_encrypt.o