udhcpc: fix a problem with binary-encoded options #2
[oweals/busybox.git] / loginutils / cryptpw.c
index b244f55e36dd0de287ed1d67b3859d7729282375..a36f920f40a735ae106fbf1f8e61ded9a9951ff2 100644 (file)
@@ -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+";