]> err.no Git - systemd/commitdiff
pam-module: use the correct session type "unspecified"
authorMichal Schmidt <mschmidt@redhat.com>
Sat, 19 Nov 2011 00:14:11 +0000 (01:14 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Sat, 19 Nov 2011 00:14:11 +0000 (01:14 +0100)
logind does not understand "other".

src/pam-module.c

index dd05f93d426ade6ddeea76a5b0d0cc5b3868fca4..e65088638b6de4d99683f9252a8776f8f28ac916 100644 (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");