chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
234e28a
)
bus: use existing macros from def.h
author
Mantas Mikulėnas
<grawity@gmail.com>
Wed, 8 Jan 2014 12:08:33 +0000
(14:08 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Wed, 8 Jan 2014 13:41:53 +0000
(21:41 +0800)
src/login/pam-module.c
patch
|
blob
|
history
diff --git
a/src/login/pam-module.c
b/src/login/pam-module.c
index c67e677384b11e0ce4b37c5ec099786924838dfb..e76fef8001586cc02d7673b08d4ae752be3f2011 100644
(file)
--- 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;
_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;
(unsigned long) uid, runtime) < 0) {
pam_syslog(handle, LOG_ERR, "Failed to set bus variable.");
return PAM_BUF_ERR;