summaryrefslogtreecommitdiff
path: root/src/login/pam_elogind.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-19 15:41:58 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:49:59 +0200
commit20b20d0c3c2109840a83f435818d033dbe027a14 (patch)
treecea99d3ddddd492f5085a903310be1ff69ea2fb9 /src/login/pam_elogind.c
parent22130b6b3c6d060b405bbc17d9a6a670001358ab (diff)
sd-bus: drop references to legacy /var/run D-Bus socket
Let's directly reference /run instead, so that we can work without /var being around, or with /var/run being incorrectly set up. Note that we keep the old socket path in place when referencing the system bus of containers, as they might be foreign operating systems, that still don't have adopted /run, and where it makes sense to use the standardized name instead. On local systems, we insist on /run being set up properly however, hence this limitation does not apply. Also, get rid of the UNIX_SYSTEM_BUS_ADDRESS and UNIX_USER_BUS_ADDRESS_FMT defines. They had a purpose when we still did kdbus, as we then had to support two different backends. But since that's gone, we don't need this indirection anymore, hence settle on a one define only.
Diffstat (limited to 'src/login/pam_elogind.c')
-rw-r--r--src/login/pam_elogind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/pam_elogind.c b/src/login/pam_elogind.c
index 80b737694..b1e678d2b 100644
--- a/src/login/pam_elogind.c
+++ b/src/login/pam_elogind.c
@@ -197,7 +197,7 @@ static int export_legacy_dbus_address(
return PAM_SUCCESS;
s = mfree(s);
- if (asprintf(&s, UNIX_USER_BUS_ADDRESS_FMT, runtime) < 0)
+ if (asprintf(&s, DEFAULT_USER_BUS_ADDRESS_FMT, runtime) < 0)
goto error;
r = pam_misc_setenv(handle, "DBUS_SESSION_BUS_ADDRESS", s, 0);