[Pkg-shadow-commits] r3393 - in upstream/trunk: . src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Thu Jul 14 13:29:54 UTC 2011


Author: nekral-guest
Date: 2011-07-14 13:29:54 +0000 (Thu, 14 Jul 2011)
New Revision: 3393

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/usermod.c
Log:
	* src/usermod.c (process_flags): Do not display the usage in case
	of an invalid -f value (similar to -e).

Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2011-07-14 13:29:48 UTC (rev 3392)
+++ upstream/trunk/ChangeLog	2011-07-14 13:29:54 UTC (rev 3393)
@@ -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 at centraliens.net>
 

Modified: upstream/trunk/src/usermod.c
===================================================================
--- upstream/trunk/src/usermod.c	2011-07-14 13:29:48 UTC (rev 3392)
+++ upstream/trunk/src/usermod.c	2011-07-14 13:29:54 UTC (rev 3393)
@@ -944,7 +944,7 @@
 					fprintf (stderr,
 					         _("%s: invalid numeric argument '%s'\n"),
 					         Prog, optarg);
-					usage (E_USAGE);
+					exit (E_BAD_ARG);
 				}
 				fflg = true;
 				break;




More information about the Pkg-shadow-commits mailing list