udhcpc: fix a problem with binary-encoded options #2
[oweals/busybox.git] / loginutils / cryptpw.c
index b25a39ac962609a62444c3e9a58ec3197d5bd445..a36f920f40a735ae106fbf1f8e61ded9a9951ff2 100644 (file)
@@ -15,7 +15,6 @@
 /* We do support -s, we just don't mention it */
 //usage:#define cryptpw_full_usage "\n\n"
 //usage:       "Crypt PASSWORD using crypt(3)\n"
-//usage:     "\nOptions:"
 //usage:       IF_LONG_OPTS(
 //usage:     "\n       -P,--password-fd=N      Read password from fd N"
 /* //usage:  "\n       -s,--stdin              Use stdin; like -P0" */
@@ -35,7 +34,6 @@
 /* We do support -s, we just don't mention it */
 //usage:#define mkpasswd_full_usage "\n\n"
 //usage:       "Crypt PASSWORD using crypt(3)\n"
-//usage:     "\nOptions:"
 //usage:       IF_LONG_OPTS(
 //usage:     "\n       -P,--password-fd=N      Read password from fd N"
 /* //usage:  "\n       -s,--stdin              Use stdin; like -P0" */
@@ -107,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+";