diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-09-30 19:00:45 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-09-30 19:13:02 +0200 |
commit | c43d1ca7221b8e745b61b9a3b8e71f7bf92fc244 (patch) | |
tree | 7e131799984c4406dc3d826ab45d1dd7d006927b /tests | |
parent | c95bcdf22b1bab43b1b964b0ee0b2cea7c1c9554 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_vt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_vt.c b/tests/test_vt.c index bc3e235..9ce7bd0 100644 --- a/tests/test_vt.c +++ b/tests/test_vt.c @@ -102,8 +102,7 @@ int main(int argc, char **argv) if (ret) goto err_exit; - ret = uterm_vt_allocate(vtm, &vt, NULL, NULL, UTERM_VT_DEFAULT, NULL, - NULL); + ret = uterm_vt_allocate(vtm, &vt, NULL, NULL, NULL, NULL, NULL); if (ret) goto err_vtm; |