From 3400bc866db1f8b45dd61b39866a6d6963c8ae2e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 May 2020 10:01:29 +0200 Subject: [PATCH] pam_systemd: drop unused uid argument from export_legacy_dbus_address() --- src/login/pam_systemd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 486f2aea97e..43587a76610 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -280,7 +280,6 @@ static int get_seat_from_display(const char *display, const char **seat, uint32_ static int export_legacy_dbus_address( pam_handle_t *handle, - uid_t uid, const char *runtime) { const char *s; @@ -681,7 +680,7 @@ _public_ PAM_EXTERN int pam_sm_open_session( } } - r = export_legacy_dbus_address(handle, ur->uid, rt); + r = export_legacy_dbus_address(handle, rt); if (r != PAM_SUCCESS) return r; @@ -885,7 +884,7 @@ _public_ PAM_EXTERN int pam_sm_open_session( return r; } - r = export_legacy_dbus_address(handle, ur->uid, runtime_path); + r = export_legacy_dbus_address(handle, runtime_path); if (r != PAM_SUCCESS) return r; }