Compilation fix. gshadow_locked should only be used if SHADOWGRP is defined.
This commit is contained in:
parent
78c59b7261
commit
e33e2b7d79
@ -1,3 +1,8 @@
|
||||
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/gpasswd.c, src/groupmod.c: Compilation fix. gshadow_locked
|
||||
should only be used if SHADOWGRP is defined.
|
||||
|
||||
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/grpck.c: Fix some warnings. compare_members_lists() is only
|
||||
|
@ -156,9 +156,11 @@ static void fail_exit (int status)
|
||||
if (group_locked) {
|
||||
gr_unlock ();
|
||||
}
|
||||
#ifdef SHADOWGRP
|
||||
if (gshadow_locked) {
|
||||
sgr_unlock ();
|
||||
}
|
||||
#endif
|
||||
|
||||
exit (status);
|
||||
}
|
||||
|
@ -66,7 +66,7 @@
|
||||
#ifdef SHADOWGRP
|
||||
static int is_shadow_grp;
|
||||
static int gshadow_locked = 0;
|
||||
#endif
|
||||
#endif /* SHADOWGRP */
|
||||
static int group_locked = 0;
|
||||
static int passwd_locked = 0;
|
||||
static char *group_name;
|
||||
@ -123,9 +123,11 @@ static void fail_exit (int status)
|
||||
if (group_locked) {
|
||||
gr_unlock ();
|
||||
}
|
||||
#ifdef SHADOWGRP
|
||||
if (gshadow_locked) {
|
||||
sgr_unlock ();
|
||||
}
|
||||
#endif /* SHADOWGRP */
|
||||
if (passwd_locked) {
|
||||
pw_unlock();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user