* src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,

src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
	src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
	src/expiry.c, src/groupdel.c, src/chgpasswd.c, src/useradd.c,
	src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/chage.c,
	src/groupadd.c, src/login.c, src/grpconv.c, src/groups.c,
	src/grpunconv.c, src/chsh.c: Prog changed to a constant string.
This commit is contained in:
nekral-guest 2010-08-22 19:36:09 +00:00
parent 07e462f01f
commit ab9427420e
28 changed files with 37 additions and 27 deletions

View File

@ -1,3 +1,13 @@
2010-08-22 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
src/expiry.c, src/groupdel.c, src/chgpasswd.c, src/useradd.c,
src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/chage.c,
src/groupadd.c, src/login.c, src/grpconv.c, src/groups.c,
src/grpunconv.c, src/chsh.c: Prog changed to a constant string.
2010-08-22 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/limits.c: Avoid implicit conversion of integer to

View File

@ -65,7 +65,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool
dflg = false, /* set last password change date */

View File

@ -58,7 +58,7 @@
/*
* Global variables.
*/
char *Prog;
const char *Prog;
static char fullnm[BUFSIZ];
static char roomno[BUFSIZ];
static char workph[BUFSIZ];

View File

@ -57,7 +57,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool cflg = false;
static bool eflg = false;
static bool md5flg = false;

View File

@ -53,7 +53,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool cflg = false;
static bool eflg = false;
static bool md5flg = false;

View File

@ -61,7 +61,7 @@
/*
* Global variables
*/
char *Prog; /* Program name */
const char *Prog; /* Program name */
static bool amroot; /* Real UID is root */
static char loginsh[BUFSIZ]; /* Name of new login shell */
/* command line options */

View File

@ -42,7 +42,7 @@
#include "prototypes.h"
/* Global variables */
char *Prog;
const char *Prog;
/* local function prototypes */
static RETSIGTYPE catch_signals (int);

View File

@ -56,7 +56,7 @@
* Global variables
*/
/* The name of this command, as it is invoked */
char *Prog;
const char *Prog;
#ifdef SHADOWGRP
/* Indicate if shadow groups are enabled on the system

View File

@ -70,7 +70,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static /*@null@*/char *group_name;
static gid_t group_id;

View File

@ -55,7 +55,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static char *group_name;
static gid_t group_id = -1;

View File

@ -64,7 +64,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static char *adduser = NULL;
static char *deluser = NULL;

View File

@ -69,7 +69,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
#ifdef SHADOWGRP
static bool is_shadow_grp;

View File

@ -42,7 +42,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
/* local function prototypes */
static void print_groups (const char *member);

View File

@ -64,7 +64,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static const char *grp_file = GROUP_FILE;
static bool use_system_grp_file = true;

View File

@ -53,7 +53,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool gr_locked = false;
static bool sgr_locked = false;

View File

@ -54,7 +54,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool gr_locked = false;
static bool sgr_locked = false;

View File

@ -82,7 +82,7 @@ static pam_handle_t *pamh = NULL;
/*
* Global variables
*/
char *Prog;
const char *Prog;
static const char *hostname = "";
static /*@null@*/ /*@only@*/char *username = NULL;

View File

@ -43,7 +43,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
#ifndef DEFAULT_HUP_MESG
#define DEFAULT_HUP_MESG _("login time exceeded\n\n")

View File

@ -48,7 +48,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
extern char **newenvp;
extern char **environ;

View File

@ -70,7 +70,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool rflg = false; /* create a system account */
#ifndef USE_PAM

View File

@ -70,7 +70,7 @@
/*
* Global variables
*/
char *Prog; /* Program name */
const char *Prog; /* Program name */
static char *name; /* The name of user whose password is being changed */
static char *myname; /* The current user's name */

View File

@ -66,7 +66,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool use_system_pw_file = true;
static bool use_system_spw_file = true;

View File

@ -86,7 +86,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool spw_locked = false;
static bool pw_locked = false;

View File

@ -48,7 +48,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static bool spw_locked = false;
static bool pw_locked = false;

View File

@ -77,7 +77,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
/* not needed by sulog.c anymore */
static char name[BUFSIZ];

View File

@ -85,7 +85,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
/*
* These defaults are used if there is no defaults file.

View File

@ -78,7 +78,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static char *user_name;
static uid_t user_id;

View File

@ -89,7 +89,7 @@
/*
* Global variables
*/
char *Prog;
const char *Prog;
static char *user_name;
static char *user_newname;