From 7367a949a6a81d71d524f0635a212371120df4e0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 4 Jan 2018 15:21:25 +0100 Subject: [PATCH] libbb: compile obscure() only if FEATURE_PASSWD_WEAK_CHECK=y Signed-off-by: Denys Vlasenko --- libbb/Kbuild.src | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1