pam_systemd: drop unused uid argument from export_legacy_dbus_address()

This commit is contained in:
Lennart Poettering 2020-05-07 10:01:29 +02:00
parent da4340fd43
commit 3400bc866d

View File

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