diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-11-01 13:20:03 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-11-28 09:17:49 +0200 |
commit | 625f56f06250aa70f74b9c99a9d47d6009dda76d (patch) | |
tree | 24e90efa21266da28c8acd8c6e3d8c104983d340 | |
parent | 5949e48d1dc2de76c9f0daaec6a7ce20c2b89dab (diff) |
weston-launch: fix -t option parsing
Fix an issue introduced in:
commit ab4999492ce630e6bb1c93215fc052c2c29913bd
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Fri Jul 19 21:26:24 2013 -0700
weston-launch: Drop sleep_fork option
where the option string accidentally became "t::". That causes
$ weston-lauch -t /dev/tty4
to be parsed incorrectly, as if -t option had no argument and the tty
path gets passed to weston which errors out because of it.
This patch fixes the above to work as expected.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r-- | libweston/weston-launch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c index dcd31e1a..1415e72d 100644 --- a/libweston/weston-launch.c +++ b/libweston/weston-launch.c @@ -698,7 +698,7 @@ main(int argc, char *argv[]) memset(&wl, 0, sizeof wl); - while ((c = getopt_long(argc, argv, "u:t::vh", opts, &i)) != -1) { + while ((c = getopt_long(argc, argv, "u:t:vh", opts, &i)) != -1) { switch (c) { case 'u': wl.new_user = optarg; |