mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-13 15:36:41 +07:00
pam-module: use the correct session type "unspecified"
logind does not understand "other".
This commit is contained in:
parent
4c2630ebf2
commit
1dc9953709
@ -472,7 +472,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
|
|||||||
get_seat_from_display(display, &seat, &vtnr);
|
get_seat_from_display(display, &seat, &vtnr);
|
||||||
|
|
||||||
type = !isempty(display) ? "x11" :
|
type = !isempty(display) ? "x11" :
|
||||||
!isempty(tty) ? "tty" : "other";
|
!isempty(tty) ? "tty" : "unspecified";
|
||||||
|
|
||||||
remote = !isempty(remote_host) && !streq(remote_host, "localhost") && !streq(remote_host, "localhost.localdomain");
|
remote = !isempty(remote_host) && !streq(remote_host, "localhost") && !streq(remote_host, "localhost.localdomain");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user