mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 08:29:45 +00:00
chpasswd: rename long options definition to match other applets. no code changes
This commit is contained in:
parent
5bfcb4d5ae
commit
64a8a3bd74
@ -11,7 +11,7 @@
|
||||
#if ENABLE_GETOPT_LONG
|
||||
#include <getopt.h>
|
||||
|
||||
static const char chpasswd_opts[] =
|
||||
static const char chpasswd_longopts[] =
|
||||
"encrypted\0" No_argument "e"
|
||||
"md5\0" No_argument "m"
|
||||
"\0";
|
||||
@ -32,7 +32,7 @@ int chpasswd_main(int argc, char **argv)
|
||||
bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
|
||||
|
||||
opt_complementary = "m--e:e--m";
|
||||
USE_GETOPT_LONG(applet_long_options = chpasswd_opts;)
|
||||
USE_GETOPT_LONG(applet_long_options = chpasswd_longopts;)
|
||||
opt = getopt32(argc, argv, "em");
|
||||
|
||||
while ((name = xmalloc_getline(stdin)) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user