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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Wed Jul 30 14:11:10 UTC 2008


Author: nekral-guest
Date: 2008-07-30 14:11:09 +0000 (Wed, 30 Jul 2008)
New Revision: 2229

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/groupmems.c
Log:
	* src/groupmems.c: Only check if the adduser user exists when an
	user is specified with -a.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-07-30 00:27:55 UTC (rev 2228)
+++ upstream/trunk/ChangeLog	2008-07-30 14:11:09 UTC (rev 2229)
@@ -1,3 +1,8 @@
+2008-07-30  Lukáš Kuklínek  <lkukline at redhat.com>
+
+	* src/groupmems.c: Only check if the adduser user exists when an
+	user is specified with -a.
+
 2008-07-30  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* src/groupmems.c: Fix the groupmems' usage message. The -D option

Modified: upstream/trunk/src/groupmems.c
===================================================================
--- upstream/trunk/src/groupmems.c	2008-07-30 00:27:55 UTC (rev 2228)
+++ upstream/trunk/src/groupmems.c	2008-07-30 14:11:09 UTC (rev 2229)
@@ -163,7 +163,8 @@
 	}
 
 	/* local, no need for xgetpwnam */
-	if (getpwnam (adduser) == NULL) {
+	if (   (NULL != adduser)
+	    && (getpwnam (adduser) == NULL)) {
 		fprintf (stderr, _("%s: user `%s' does not exist\n"),
 		         Prog, adduser);
 		fail_exit (EXIT_INVALID_USER);




More information about the Pkg-shadow-commits mailing list