Do not flush nscd and sssd cache in read-only mode
Fix #155 signed-off-by: Charlie Vuillemez <cvuillemez@users.noreply.github.com>
This commit is contained in:
parent
d66a1fe069
commit
dd2033c40c
@ -870,8 +870,10 @@ int main (int argc, char **argv)
|
||||
/* Commit the change in the database if needed */
|
||||
close_files (changed);
|
||||
|
||||
if (!read_only) {
|
||||
nscd_flush_cache ("group");
|
||||
sssd_flush_cache (SSSD_DB_GROUP);
|
||||
}
|
||||
|
||||
/*
|
||||
* Tell the user what we did and exit.
|
||||
|
@ -877,8 +877,10 @@ int main (int argc, char **argv)
|
||||
|
||||
close_files (changed);
|
||||
|
||||
if (!read_only) {
|
||||
nscd_flush_cache ("passwd");
|
||||
sssd_flush_cache (SSSD_DB_PASSWD);
|
||||
}
|
||||
|
||||
/*
|
||||
* Tell the user what we did and exit.
|
||||
|
Loading…
Reference in New Issue
Block a user