]> err.no Git - systemd/commitdiff
logind: properly preallocate configured auto VTs
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 00:53:49 +0000 (02:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 00:53:49 +0000 (02:53 +0200)
src/logind-seat.c

index df91cd0d8a53ebc057dd77a197bc84e11be8953c..bc695fea837f7daddd9e9393443e952deaec548f 100644 (file)
@@ -199,7 +199,7 @@ static int seat_preallocate_vts(Seat *s) {
         if (!seat_is_vtconsole(s))
                 return 0;
 
-        for (i = 1; i < s->manager->n_autovts; i++) {
+        for (i = 1; i <= s->manager->n_autovts; i++) {
                 int q;
 
                 q = vt_allocate(i);