Merge pull request #11086 from poettering/nscd-cache-flush

flush nscd's caches when we register user/groups/hostnames
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-12-17 11:29:58 +01:00
committed by GitHub
12 changed files with 254 additions and 7 deletions
+3
View File
@@ -18,6 +18,7 @@
#include "id128-util.h"
#include "main-func.h"
#include "missing_capability.h"
#include "nscd-flush.h"
#include "os-util.h"
#include "parse-util.h"
#include "path-util.h"
@@ -290,6 +291,8 @@ static int context_update_kernel_hostname(Context *c) {
if (sethostname_idempotent(hn) < 0)
return -errno;
(void) nscd_flush_cache(STRV_MAKE("hosts"));
return 0;
}