+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
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool
dflg = false, /* set last password change date */
/*
* Global variables.
*/
-char *Prog;
+const char *Prog;
static char fullnm[BUFSIZ];
static char roomno[BUFSIZ];
static char workph[BUFSIZ];
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool cflg = false;
static bool eflg = false;
static bool md5flg = false;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool cflg = false;
static bool eflg = false;
static bool md5flg = false;
/*
* 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 */
#include "prototypes.h"
/* Global variables */
-char *Prog;
+const char *Prog;
/* local function prototypes */
static RETSIGTYPE catch_signals (int);
* 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
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static /*@null@*/char *group_name;
static gid_t group_id;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static char *group_name;
static gid_t group_id = -1;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static char *adduser = NULL;
static char *deluser = NULL;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
#ifdef SHADOWGRP
static bool is_shadow_grp;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
/* local function prototypes */
static void print_groups (const char *member);
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static const char *grp_file = GROUP_FILE;
static bool use_system_grp_file = true;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool gr_locked = false;
static bool sgr_locked = false;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool gr_locked = false;
static bool sgr_locked = false;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static const char *hostname = "";
static /*@null@*/ /*@only@*/char *username = NULL;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
#ifndef DEFAULT_HUP_MESG
#define DEFAULT_HUP_MESG _("login time exceeded\n\n")
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
extern char **newenvp;
extern char **environ;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool rflg = false; /* create a system account */
#ifndef USE_PAM
/*
* 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 */
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool use_system_pw_file = true;
static bool use_system_spw_file = true;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool spw_locked = false;
static bool pw_locked = false;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static bool spw_locked = false;
static bool pw_locked = false;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
/* not needed by sulog.c anymore */
static char name[BUFSIZ];
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
/*
* These defaults are used if there is no defaults file.
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static char *user_name;
static uid_t user_id;
/*
* Global variables
*/
-char *Prog;
+const char *Prog;
static char *user_name;
static char *user_newname;