* src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,

src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c,
	src/grpconv.c, src/grpunconv.c, src/newusers.c, src/pwconv.c,
	src/pwunconv.c, src/useradd.c, src/userdel.c: Harmonize the name
	of the variables keeping the lock status, to match the shadow
	library prefixes.
This commit is contained in:
nekral-guest
2008-08-22 02:22:34 +00:00
parent 82ed690817
commit 82779cd336
16 changed files with 151 additions and 146 deletions

View File

@ -68,7 +68,7 @@ static bool purge = false;
static bool list = false;
static int exclusive = 0;
static char *Prog;
static bool group_locked = false;
static bool gr_locked = false;
static char *whoami (void);
static void display_members (char **members);
@ -205,7 +205,7 @@ static void check_perms (void)
static void fail_exit (int code)
{
if (group_locked) {
if (gr_locked) {
if (gr_unlock () == 0) {
fprintf (stderr,
_("%s: failed to unlock %s\n"),
@ -258,7 +258,7 @@ int main (int argc, char **argv)
Prog, gr_dbname ());
fail_exit (EXIT_GROUP_FILE);
}
group_locked = true;
gr_locked = true;
}
if (gr_open (list ? O_RDONLY : O_RDWR) == 0) {