Drop support for nscd
nscd is known to be racy [1] and it was already deprecated and later dropped in
Fedora a while back [1,2]. We don't need to support obsolete stuff in systemd,
and the cache in systemd-resolved provides a better solution anyway.
We announced the plan to drop nscd in d44934f378.
[1] https://fedoraproject.org/wiki/Changes/DeprecateNSCD
[2] https://fedoraproject.org/wiki/Changes/RemoveNSCD
The option is kept as a stub without any effect to make the transition easier.
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include "main-func.h"
|
||||
#include "memory-util.h"
|
||||
#include "mount-util.h"
|
||||
#include "nscd-flush.h"
|
||||
#include "pager.h"
|
||||
#include "parse-argument.h"
|
||||
#include "path-util.h"
|
||||
@@ -970,9 +969,6 @@ static int write_files(Context *c) {
|
||||
return log_error_errno(r, "Failed to rename %s to %s: %m",
|
||||
group_tmp, group_path);
|
||||
group_tmp = mfree(group_tmp);
|
||||
|
||||
if (!arg_root && !arg_image)
|
||||
(void) nscd_flush_cache(STRV_MAKE("group"));
|
||||
}
|
||||
if (gshadow) {
|
||||
r = rename_and_apply_smack_floor_label(gshadow_tmp, gshadow_path);
|
||||
@@ -990,9 +986,6 @@ static int write_files(Context *c) {
|
||||
passwd_tmp, passwd_path);
|
||||
|
||||
passwd_tmp = mfree(passwd_tmp);
|
||||
|
||||
if (!arg_root && !arg_image)
|
||||
(void) nscd_flush_cache(STRV_MAKE("passwd"));
|
||||
}
|
||||
if (shadow) {
|
||||
r = rename_and_apply_smack_floor_label(shadow_tmp, shadow_path);
|
||||
|
||||
Reference in New Issue
Block a user