summaryrefslogtreecommitdiff
path: root/src/login/pam-module.c
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2014-01-08 14:08:33 +0200
committerKay Sievers <kay@vrfy.org>2014-01-08 21:41:53 +0800
commit06150d9039296a6c37aa300463e9bd0c7f296542 (patch)
tree77e7518e42cf26bc5f88219ba52b19c0da62c4c6 /src/login/pam-module.c
parent234e28aa1cd37dee597c719ac5ca004c6215d28c (diff)
bus: use existing macros from def.h
Diffstat (limited to 'src/login/pam-module.c')
-rw-r--r--src/login/pam-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/pam-module.c b/src/login/pam-module.c
index c67e677384..e76fef8001 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;