kmscon: allow paths with --vt=<xy>
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 17:00:45 +0000 (19:00 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 17:13:02 +0000 (19:13 +0200)
commitc43d1ca7221b8e745b61b9a3b8e71f7bf92fc244
tree7e131799984c4406dc3d826ab45d1dd7d006927b
parentc95bcdf22b1bab43b1b964b0ee0b2cea7c1c9554
kmscon: allow paths with --vt=<xy>

The getty variants out there (including agetty) require an relative path
to the /dev directory as argument. This is really odd but we want to be
backwards-compatible to them so we allow this, too.

--vt now accepts:
  * A positive number which is internally converted into /dev/ttyXY
  * A string that does not start with '/' or '.' which is interpreted
    relative to /dev as /dev/%s
  * Everything else is interpreted as path

This option still selects only the TTY on seat0. On all other seats we do
not use controlling TTYs.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Makefile.am
src/main.c
src/main.h
src/uterm.h
src/uterm_vt.c
tests/test_vt.c