* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup

stack only when the shadow group file is present.
This commit is contained in:
nekral-guest 2009-03-15 21:32:26 +00:00
parent 9372111aaa
commit 780af2653a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup
stack only when the shadow group file is present.
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/userdel.c: Make sure the user exists in the shadow

View File

@ -696,7 +696,9 @@ static void close_files (void)
log_gpasswd_success_system (NULL);
del_cleanup (log_gpasswd_success_group);
#ifdef SHADOWGRP
del_cleanup (log_gpasswd_success_gshadow);
if (is_shadowgrp) {
del_cleanup (log_gpasswd_success_gshadow);
}
#endif
}