1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

bus: use existing macros from def.h

This commit is contained in:
Mantas Mikulėnas 2014-01-08 14:08:33 +02:00 committed by Kay Sievers
parent 234e28aa1c
commit 06150d9039

View File

@ -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;