Skip to content

Commit a127c62

Browse files
committed
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
1 parent 5157d71 commit a127c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/userdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ int userdb_block_nss_systemd(int b) {
12311231

12321232
/* Note that we might be called from libnss_systemd.so.2 itself, but that should be fine, really. */
12331233

1234-
dl = dlopen(ROOTLIBDIR "libnss_systemd.so.2", RTLD_LAZY|RTLD_NODELETE);
1234+
dl = dlopen(ROOTLIBDIR "/libnss_systemd.so.2", RTLD_LAZY|RTLD_NODELETE);
12351235
if (!dl) {
12361236
/* If the file isn't installed, don't complain loudly */
12371237
log_debug("Failed to dlopen(libnss_systemd.so.2), ignoring: %s", dlerror());

0 commit comments

Comments
 (0)