From: Zbigniew Jędrzejewski-Szmek Date: Wed, 8 Jul 2020 20:23:24 +0000 (+0200) Subject: userdb: fix dlopen call X-Git-Tag: v246-rc1~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a127c6208f87d510f207b7978f7c1d2d6facda2f;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/shared/userdb.c b/src/shared/userdb.c index 6fedbd6ebe6..3fc333fd353 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());