* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,

src/faillog.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c,
	src/groupmems.c, src/groupmod.c, src/grpconv.c, src/grpunconv.c,
	src/lastlog.c, src/newusers.c, src/passwd.c, src/pwconv.c,
	src/pwunconv.c, src/su.c, src/useradd.c, src/userdel.c,
	src/usermod.c, src/vipw.c: Align and sort options.
This commit is contained in:
nekral-guest
2011-11-06 18:39:59 +00:00
parent 7d8ca29bea
commit f0a63185c9
23 changed files with 177 additions and 164 deletions

View File

@ -527,12 +527,14 @@ static void process_flags (int argc, char **argv)
static struct option long_options[] = {
#ifndef USE_PAM
{"crypt-method", required_argument, NULL, 'c'},
#endif /* !USE_PAM */
{"help", no_argument, NULL, 'h'},
{"system", no_argument, NULL, 'r'},
#ifndef USE_PAM
#ifdef USE_SHA_CRYPT
{"sha-rounds", required_argument, NULL, 's'},
{"sha-rounds", required_argument, NULL, 's'},
#endif /* USE_SHA_CRYPT */
#endif /* !USE_PAM */
{"help", no_argument, NULL, 'h'},
{"system", no_argument, NULL, 'r'},
{NULL, 0, NULL, '\0'}
};
@ -548,6 +550,11 @@ static void process_flags (int argc, char **argv)
#endif
long_options, NULL)) != -1) {
switch (c) {
#ifndef USE_PAM
case 'c':
crypt_method = optarg;
break;
#endif /* !USE_PAM */
case 'h':
usage (EXIT_SUCCESS);
break;
@ -555,9 +562,6 @@ static void process_flags (int argc, char **argv)
rflg = true;
break;
#ifndef USE_PAM
case 'c':
crypt_method = optarg;
break;
#ifdef USE_SHA_CRYPT
case 's':
sflg = true;