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(
|
static int export_legacy_dbus_address(
|
||||||
pam_handle_t *handle,
|
pam_handle_t *handle,
|
||||||
uid_t uid,
|
|
||||||
const char *runtime) {
|
const char *runtime) {
|
||||||
|
|
||||||
const char *s;
|
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)
|
if (r != PAM_SUCCESS)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
@ -885,7 +884,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
r = export_legacy_dbus_address(handle, ur->uid, runtime_path);
|
r = export_legacy_dbus_address(handle, runtime_path);
|
||||||
if (r != PAM_SUCCESS)
|
if (r != PAM_SUCCESS)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue