pam-module: use the correct session type "unspecified"

logind does not understand "other".
This commit is contained in:
Michal Schmidt 2011-11-19 01:14:11 +01:00
parent 4c2630ebf2
commit 1dc9953709

View File

@ -472,7 +472,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
get_seat_from_display(display, &seat, &vtnr);
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");