summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-08 22:23:24 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-09 07:55:56 +0200
commita127c6208f87d510f207b7978f7c1d2d6facda2f (patch)
tree3d6f9e80a229c79a1d74093b9c5826c69d538a4b
parent5157d719f02978ed3a034bb2f0cdb16ca90140da (diff)
downloadsystemd-a127c6208f87d510f207b7978f7c1d2d6facda2f.tar.gz
userdb: fix dlopen call
The call would always fail with: systemd-userwork[780]: Failed to dlopen(libnss_systemd.so.2), ignoring: /usr/lib64libnss_systemd.so.2: cannot open shared object file: No such file or directory
-rw-r--r--src/shared/userdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/userdb.c b/src/shared/userdb.c
index 6fedbd6ebe..3fc333fd35 100644
--- a/src/shared/userdb.c
+++ b/src/shared/userdb.c
@@ -1231,7 +1231,7 @@ int userdb_block_nss_systemd(int b) {
/* Note that we might be called from libnss_systemd.so.2 itself, but that should be fine, really. */
- dl = dlopen(ROOTLIBDIR "libnss_systemd.so.2", RTLD_LAZY|RTLD_NODELETE);
+ dl = dlopen(ROOTLIBDIR "/libnss_systemd.so.2", RTLD_LAZY|RTLD_NODELETE);
if (!dl) {
/* If the file isn't installed, don't complain loudly */
log_debug("Failed to dlopen(libnss_systemd.so.2), ignoring: %s", dlerror());