[systemd-commits] src/login

Kay Sievers kay at kemper.freedesktop.org
Wed Jan 8 05:44:09 PST 2014


 src/login/pam-module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 06150d9039296a6c37aa300463e9bd0c7f296542
Author: Mantas MikulÄ—nas <grawity at gmail.com>
Date:   Wed Jan 8 14:08:33 2014 +0200

    bus: use existing macros from def.h

diff --git a/src/login/pam-module.c b/src/login/pam-module.c
index c67e677..e76fef8 100644
--- a/src/login/pam-module.c
+++ b/src/login/pam-module.c
@@ -173,7 +173,7 @@ static int export_legacy_dbus_address(
         _cleanup_free_ char *s = NULL;
         int r;
 
-        if (asprintf(&s, "kernel:path=/dev/kdbus/%lu-user/bus;unix:path=%s/bus",
+        if (asprintf(&s, KERNEL_USER_BUS_FMT ";" UNIX_USER_BUS_FMT,
                      (unsigned long) uid, runtime) < 0) {
                 pam_syslog(handle, LOG_ERR, "Failed to set bus variable.");
                 return PAM_BUF_ERR;



More information about the systemd-commits mailing list