summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-11-19 01:14:11 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-11-19 01:14:11 +0100
commit1dc995370987660ff045ff4d7cf512da0390cf96 (patch)
treedba878cb736d3bd71c603a9dbee7ac95ba75c2d1 /src
parent4c2630ebf23b6348174f0bdf1110e90efe45259c (diff)
pam-module: use the correct session type "unspecified"
logind does not understand "other".
Diffstat (limited to 'src')
-rw-r--r--src/pam-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pam-module.c b/src/pam-module.c
index dd05f93d42..e65088638b 100644
--- a/src/pam-module.c
+++ b/src/pam-module.c
@@ -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");