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

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sat Jul 30 01:47:53 UTC 2011


Author: nekral-guest
Date: 2011-07-30 01:47:52 +0000 (Sat, 30 Jul 2011)
New Revision: 3460

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/useradd.c
Log:
	* src/useradd.c: Remove unused Zflg.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2011-07-30 01:46:23 UTC (rev 3459)
+++ upstream/trunk/ChangeLog	2011-07-30 01:47:52 UTC (rev 3460)
@@ -1,5 +1,9 @@
 2011-07-30  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/useradd.c: Remove unused Zflg.
+
+2011-07-30  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/chgpasswd.c: Fix typo sp -> sg. sg_namp -> sg_name
 	* src/chgpasswd.c: Always update the group file when SHADOWGRP is
 	not enabled.

Modified: upstream/trunk/src/useradd.c
===================================================================
--- upstream/trunk/src/useradd.c	2011-07-30 01:46:23 UTC (rev 3459)
+++ upstream/trunk/src/useradd.c	2011-07-30 01:47:52 UTC (rev 3460)
@@ -148,8 +148,7 @@
     rflg = false,		/* create a system account */
     sflg = false,		/* shell program for new account */
     uflg = false,		/* specify user ID for new account */
-    Uflg = false,		/* create a group having the same name as the user */
-    Zflg = false;		/* new selinux user */
+    Uflg = false;		/* create a group having the same name as the user */
 
 static bool home_added = false;
 
@@ -1201,7 +1200,6 @@
 			case 'Z':
 				if (is_selinux_enabled () > 0) {
 					user_selinux = optarg;
-					Zflg = true;
 				} else {
 					fprintf (stderr,
 					         _("%s: -Z requires SELinux enabled kernel\n"),




More information about the Pkg-shadow-commits mailing list