* 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/groupadd.c, src/chage.c, src/login.c, src/grpconv.c,
	src/groups.c, src/grpunconv.c, src/chsh.c: Prog is now global (not
	static to the file) so that it can be used by the helper functions
	of libmisc.
	* lib/prototypes.h: Added extern char *Prog.
	* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Indicate the
	program name with the warning.
This commit is contained in:
nekral-guest
2008-09-06 12:51:53 +00:00
parent 7034a913fd
commit ee4e367ea8
31 changed files with 73 additions and 34 deletions

View File

@ -66,6 +66,8 @@
/*
* Global variables
*/
char *Prog;
#ifdef SHADOWGRP
static bool is_shadow_grp;
static bool sgr_locked = false;
@ -78,8 +80,6 @@ static char *group_passwd;
static gid_t group_id;
static gid_t group_newid;
static char *Prog;
static bool
oflg = false, /* permit non-unique group ID to be specified with -g */
gflg = false, /* new ID value for the group */