From 7b05484494979018e81ebafb78c7100faaad6154 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 27 Dec 2007 17:36:08 +0000 Subject: [PATCH] gpasswd cleanup * src/gpasswd.c: Add argument name to the internal function prototypes. * src/gpasswd.c: Document global variables. --- ChangeLog | 7 +++++++ src/gpasswd.c | 11 ++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36e3156f..50039d9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-12-27 Nicolas François + + 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 Merge Debian's patch 462_warn_to_edit_shadow diff --git a/src/gpasswd.c b/src/gpasswd.c index 26b41b73..15f1ea67 100644 --- a/src/gpasswd.c +++ b/src/gpasswd.c @@ -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 -- 2.40.0