mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
pam_systemd: drop unused uid argument from export_legacy_dbus_address()
This commit is contained in:
parent
da4340fd43
commit
3400bc866d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user