* 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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user