From: Serge Hallyn Date: Thu, 6 Jun 2013 15:43:29 +0000 (+0200) Subject: usermod: add v:w:V:W: to getopt X-Git-Tag: 4.2.1~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c485cfabd86ce0e8eefe46f7e83ecf0da7ee025d;p=shadow usermod: add v:w:V:W: to getopt Signed-off-by: Serge Hallyn --- diff --git a/src/usermod.c b/src/usermod.c index 92a57d2e..2ba1f0ed 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -993,9 +993,9 @@ static void process_flags (int argc, char **argv) }; while ((c = getopt_long (argc, argv, #ifdef WITH_SELINUX - "ac:d:e:f:g:G:hl:Lmop:R:s:u:UZ:", + "ac:d:e:f:g:G:hl:Lmop:R:s:u:UZ:v:w:V:W:", #else /* !WITH_SELINUX */ - "ac:d:e:f:g:G:hl:Lmop:R:s:u:U", + "ac:d:e:f:g:G:hl:Lmop:R:s:u:Uv:w:V:W:", #endif /* !WITH_SELINUX */ long_options, NULL)) != -1) { switch (c) { @@ -1141,6 +1141,7 @@ static void process_flags (int argc, char **argv) exit(E_BAD_ARG); } wflg = true; + break; case 'W': if (prepend_range (optarg, &del_sub_gids) == 0) { fprintf (stderr,