gpasswd cleanup
* src/gpasswd.c: Add argument name to the internal function prototypes. * src/gpasswd.c: Document global variables.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2007-12-27 Nicolas François <nicolas.francois@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@centraliens.net>
|
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
Merge Debian's patch 462_warn_to_edit_shadow
|
Merge Debian's patch 462_warn_to_edit_shadow
|
||||||
|
@@ -49,25 +49,30 @@
|
|||||||
/*
|
/*
|
||||||
* Global variables
|
* Global variables
|
||||||
*/
|
*/
|
||||||
|
/* The name of this command, as it is invoked */
|
||||||
static char *Prog;
|
static char *Prog;
|
||||||
|
|
||||||
#ifdef SHADOWGRP
|
#ifdef SHADOWGRP
|
||||||
|
/* Indicate if shadow groups are enabled on the system
|
||||||
|
* (/etc/gshadow present) */
|
||||||
static int is_shadowgrp;
|
static int is_shadowgrp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
aflg = 0, Aflg = 0, dflg = 0, Mflg = 0, rflg = 0, Rflg = 0;
|
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
|
#ifndef RETRIES
|
||||||
#define RETRIES 3
|
#define RETRIES 3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* local function prototypes */
|
/* local function prototypes */
|
||||||
static void usage (void);
|
static void usage (void);
|
||||||
static RETSIGTYPE catch_signals (int);
|
static RETSIGTYPE catch_signals (int killed);
|
||||||
static int check_list (const char *);
|
static int check_list (const char *users);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* usage - display usage message
|
* usage - display usage message
|
||||||
|
Reference in New Issue
Block a user