]> granicus.if.org Git - shadow/commitdiff
* src/usermod.c (process_flags): Do not display the usage in case
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 14 Jul 2011 13:29:54 +0000 (13:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 14 Jul 2011 13:29:54 +0000 (13:29 +0000)
of an invalid -f value (similar to -e).

ChangeLog
src/usermod.c

index 38b0ed30d7d708e7eab0e4312ca75a4430407916..d0433ae821a5decfebc1e2af446174bf5eb3d1a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,8 @@
        renamed (as for the homedir)
        * src/usermod.c (new_pwent): Document that pw_locate will not fail
        because getpwnam returned successfully.
+       * src/usermod.c (process_flags): Do not display the usage in case
+       of an invalid -f value (similar to -e).
 
 2011-07-08  Nicolas François  <nicolas.francois@centraliens.net>
 
index 1f3ebb76dc43edf707540a542132e3afe101ad06..9525ade3dbaeae1fc6c75490b1169b8af3548aa8 100644 (file)
@@ -944,7 +944,7 @@ static void process_flags (int argc, char **argv)
                                        fprintf (stderr,
                                                 _("%s: invalid numeric argument '%s'\n"),
                                                 Prog, optarg);
-                                       usage (E_USAGE);
+                                       exit (E_BAD_ARG);
                                }
                                fflg = true;
                                break;