From d45efd3a9f6854ab662afe272aeae5779300b126 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 8 Jan 2012 16:44:37 +0100 Subject: passwd,cryptpw: make default encryption algorithm configurable Signed-off-by: Denys Vlasenko --- loginutils/cryptpw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loginutils/cryptpw.c') diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c index b244f55e3..a36f920f4 100644 --- a/loginutils/cryptpw.c +++ b/loginutils/cryptpw.c @@ -105,7 +105,7 @@ int cryptpw_main(int argc UNUSED_PARAM, char **argv) applet_long_options = mkpasswd_longopts; #endif fd = STDIN_FILENO; - opt_m = "d"; + opt_m = CONFIG_FEATURE_DEFAULT_PASSWD_ALGO; opt_S = NULL; /* at most two non-option arguments; -P NUM */ opt_complementary = "?2:P+"; -- cgit v1.2.3