summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-09-17 17:40:00 +0200
committerLennart Poettering <lennart@poettering.net>2013-09-17 13:48:23 -0500
commit20e1bd9d1b289761a1b0010d778bdaf924f317b3 (patch)
treee25aa1e9661b7c16795d7f58fd3345c52e24890d /src/login/logind-session.c
parent92432fcc7f3a0320c07e99c5d395568a3aa216b6 (diff)
logind: fix seat_can_tty() to check for VTs
A seat provides text-logins if it has VTs. This is always limited to seat0 so the seat_is_seat0() check is correct. However, if VTs are disabled, no seat provides text-logins so we also need to check for the console-fd. This was previously: return seat_is_vtconsole(); It looked right, but was functionally equivalent to seat_is_seat0(). The rename of this helper made it more obvious that it is missing the VT test.
Diffstat (limited to 'src/login/logind-session.c')
0 files changed, 0 insertions, 0 deletions