summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2016-05-18 13:40:36 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-21 22:24:55 +0100
commite2f31e150e0869f103e29e562743b3ba39182d3e (patch)
tree652a32e772a7ba5d72207e060c761e57736af524 /meta/recipes-graphics/wayland/weston
parent2192a48a5dc2f2e9c16d6b03ddd578333763c355 (diff)
downloadpoky-e2f31e150e0869f103e29e562743b3ba39182d3e.tar.gz
weston: weston-launch: Handle invalid command line options
Exit the program if an unrecognized command line option is found. (From OE-Core rev: 9494ac03152174eee811e0534cf56e2248c58cc6) Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland/weston')
-rw-r--r--meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch b/meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch
new file mode 100644
index 0000000000..25c868311c
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch
@@ -0,0 +1,33 @@
1From e8b615250f700f7854b423aaaf0a0aeea92c05a9 Mon Sep 17 00:00:00 2001
2From: Tom Hochstein <tom.hochstein@nxp.com>
3Date: Sat, 7 May 2016 08:51:58 -0300
4Subject: [PATCH] weston-launch: Handle invalid command line options
5Organization: O.S. Systems Software LTDA.
6
7Exit the program if an unrecognized command line option is found.
8
9Upstream-Status: Submitted
10
11Signed-off-by; Tom Hochstein <tom.hochstein@nxp.com>
12Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13---
14
15 src/weston-launch.c | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/src/weston-launch.c b/src/weston-launch.c
19index b8dfb17..9987d8e 100644
20--- a/src/weston-launch.c
21+++ b/src/weston-launch.c
22@@ -703,6 +703,8 @@ main(int argc, char *argv[])
23 case 'h':
24 help("weston-launch");
25 exit(EXIT_FAILURE);
26+ default:
27+ exit(EXIT_FAILURE);
28 }
29 }
30
31--
322.8.2
33