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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Thu Dec 27 17:36:09 UTC 2007


Author: nekral-guest
Date: 2007-12-27 17:36:08 +0000 (Thu, 27 Dec 2007)
New Revision: 1504

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/gpasswd.c
Log:
gpasswd cleanup
	* src/gpasswd.c: Add argument name to the internal function
	prototypes.
	* src/gpasswd.c: Document global variables.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2007-12-26 23:43:55 UTC (rev 1503)
+++ upstream/trunk/ChangeLog	2007-12-27 17:36:08 UTC (rev 1504)
@@ -1,5 +1,12 @@
 2007-12-27  Nicolas François  <nicolas.francois at centraliens.net>
 
+	gpasswd cleanup
+	* src/gpasswd.c: Add argument name to the internal function
+	prototypes.
+	* src/gpasswd.c: Document global variables.
+
+2007-12-27  Nicolas François  <nicolas.francois at centraliens.net>
+
 	Merge Debian's patch 462_warn_to_edit_shadow
 	* NEW, src/vipw.c: Recommend editing the shadowed (resp. regular) file
 	if the regular (resp. shadowed) file was edited.

Modified: upstream/trunk/src/gpasswd.c
===================================================================
--- upstream/trunk/src/gpasswd.c	2007-12-26 23:43:55 UTC (rev 1503)
+++ upstream/trunk/src/gpasswd.c	2007-12-27 17:36:08 UTC (rev 1504)
@@ -49,25 +49,30 @@
 /*
  * Global variables
  */
+/* The name of this command, as it is invoked */
 static char *Prog;
 
 #ifdef SHADOWGRP
+/* Indicate if shadow groups are enabled on the system
+ * (/etc/gshadow present) */
 static int is_shadowgrp;
 #endif
 
 static int
  aflg = 0, Aflg = 0, dflg = 0, Mflg = 0, rflg = 0, Rflg = 0;
 
-unsigned int bywho = -1;
+/* The UID of the caller */
+unsigned long bywho = -1;
 
+/* The number of retries for th user to provide and repeat a new password */
 #ifndef	RETRIES
 #define	RETRIES	3
 #endif
 
 /* local function prototypes */
 static void usage (void);
-static RETSIGTYPE catch_signals (int);
-static int check_list (const char *);
+static RETSIGTYPE catch_signals (int killed);
+static int check_list (const char *users);
 
 /*
  * usage - display usage message




More information about the Pkg-shadow-commits mailing list