* 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:
parent
07e462f01f
commit
ab9427420e
10
ChangeLog
10
ChangeLog
@ -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
|
||||
|
@ -65,7 +65,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static bool
|
||||
dflg = false, /* set last password change date */
|
||||
|
@ -58,7 +58,7 @@
|
||||
/*
|
||||
* Global variables.
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
static char fullnm[BUFSIZ];
|
||||
static char roomno[BUFSIZ];
|
||||
static char workph[BUFSIZ];
|
||||
|
@ -57,7 +57,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
static bool cflg = false;
|
||||
static bool eflg = false;
|
||||
static bool md5flg = false;
|
||||
|
@ -53,7 +53,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
static bool cflg = false;
|
||||
static bool eflg = false;
|
||||
static bool md5flg = false;
|
||||
|
@ -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 */
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "prototypes.h"
|
||||
|
||||
/* Global variables */
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
/* local function prototypes */
|
||||
static RETSIGTYPE catch_signals (int);
|
||||
|
@ -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
|
||||
|
@ -70,7 +70,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static /*@null@*/char *group_name;
|
||||
static gid_t group_id;
|
||||
|
@ -55,7 +55,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static char *group_name;
|
||||
static gid_t group_id = -1;
|
||||
|
@ -64,7 +64,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static char *adduser = NULL;
|
||||
static char *deluser = NULL;
|
||||
|
@ -69,7 +69,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
#ifdef SHADOWGRP
|
||||
static bool is_shadow_grp;
|
||||
|
@ -42,7 +42,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
/* local function prototypes */
|
||||
static void print_groups (const char *member);
|
||||
|
@ -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;
|
||||
|
@ -53,7 +53,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static bool gr_locked = false;
|
||||
static bool sgr_locked = false;
|
||||
|
@ -54,7 +54,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static bool gr_locked = false;
|
||||
static bool sgr_locked = false;
|
||||
|
@ -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;
|
||||
|
@ -43,7 +43,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
#ifndef DEFAULT_HUP_MESG
|
||||
#define DEFAULT_HUP_MESG _("login time exceeded\n\n")
|
||||
|
@ -48,7 +48,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
extern char **newenvp;
|
||||
extern char **environ;
|
||||
|
@ -70,7 +70,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static bool rflg = false; /* create a system account */
|
||||
#ifndef USE_PAM
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
|
@ -86,7 +86,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static bool spw_locked = false;
|
||||
static bool pw_locked = false;
|
||||
|
@ -48,7 +48,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static bool spw_locked = false;
|
||||
static bool pw_locked = false;
|
||||
|
2
src/su.c
2
src/su.c
@ -77,7 +77,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
/* not needed by sulog.c anymore */
|
||||
static char name[BUFSIZ];
|
||||
|
@ -85,7 +85,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
/*
|
||||
* These defaults are used if there is no defaults file.
|
||||
|
@ -78,7 +78,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static char *user_name;
|
||||
static uid_t user_id;
|
||||
|
@ -89,7 +89,7 @@
|
||||
/*
|
||||
* Global variables
|
||||
*/
|
||||
char *Prog;
|
||||
const char *Prog;
|
||||
|
||||
static char *user_name;
|
||||
static char *user_newname;
|
||||
|
Loading…
Reference in New Issue
Block a user