* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()

if Zflg is set.
This commit is contained in:
nekral-guest 2009-04-11 16:47:32 +00:00
parent 192fa18195
commit 3fdefd3e40
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
if Zflg is set.
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getgr_nam_gid.c: Added support for NULL argument.

View File

@ -2003,7 +2003,9 @@ int main (int argc, char **argv)
close_files ();
#ifdef WITH_SELINUX
selinux_update_mapping ();
if (Zflg) {
selinux_update_mapping ();
}
#endif
nscd_flush_cache ("passwd");

View File

@ -1759,7 +1759,9 @@ int main (int argc, char **argv)
nscd_flush_cache ("group");
#ifdef WITH_SELINUX
selinux_update_mapping ();
if (Zflg) {
selinux_update_mapping ();
}
#endif
if (mflg) {