summaryrefslogtreecommitdiffstats
path: root/src/sysusers
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-07-11 23:43:27 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-06-28 18:51:56 +0200
commit28f1f1a5e652508d6e61ace8918e8b831e4b62b4 (patch)
treeeac8fdb36611df8a88fcc5e8049ec6075c751878 /src/sysusers
parentmeson: Drop genkey target (diff)
downloadsystemd-28f1f1a5e652508d6e61ace8918e8b831e4b62b4.tar.xz
systemd-28f1f1a5e652508d6e61ace8918e8b831e4b62b4.zip
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 d44934f3785ad9ca4aab757beb80a9b11ba4bc04. [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.
Diffstat (limited to 'src/sysusers')
-rw-r--r--src/sysusers/sysusers.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index 9471c1843e..b3fde5097e 100644
--- a/src/sysusers/sysusers.c
+++ b/src/sysusers/sysusers.c
@@ -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);