chiark / gitweb /
logind: fix session_activate(vtnr = 0)
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 17 Sep 2013 15:40:01 +0000 (17:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 18:48:41 +0000 (13:48 -0500)
commit9209d5121dfb3049cbf280139c4cc40c2038edcc
treee7a00fba89db767a5311da916afd62b42012f299
parent20e1bd9d1b289761a1b0010d778bdaf924f317b3
logind: fix session_activate(vtnr = 0)

VT numbers start with 1. If a session has vtnr == 0, we must not assume it
is running on a VT.
Note that this could trigger the assert() below as CreateSession() sets
vtnr to 0, not <0.
src/login/logind-session.c