diff options
| -rw-r--r-- | meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch | 33 | ||||
| -rw-r--r-- | meta/recipes-graphics/wayland/weston_1.10.0.bb | 1 |
2 files changed, 34 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 @@ | |||
| 1 | From e8b615250f700f7854b423aaaf0a0aeea92c05a9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tom Hochstein <tom.hochstein@nxp.com> | ||
| 3 | Date: Sat, 7 May 2016 08:51:58 -0300 | ||
| 4 | Subject: [PATCH] weston-launch: Handle invalid command line options | ||
| 5 | Organization: O.S. Systems Software LTDA. | ||
| 6 | |||
| 7 | Exit the program if an unrecognized command line option is found. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted | ||
| 10 | |||
| 11 | Signed-off-by; Tom Hochstein <tom.hochstein@nxp.com> | ||
| 12 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
| 13 | --- | ||
| 14 | |||
| 15 | src/weston-launch.c | 2 ++ | ||
| 16 | 1 file changed, 2 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/src/weston-launch.c b/src/weston-launch.c | ||
| 19 | index 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 | -- | ||
| 32 | 2.8.2 | ||
| 33 | |||
diff --git a/meta/recipes-graphics/wayland/weston_1.10.0.bb b/meta/recipes-graphics/wayland/weston_1.10.0.bb index d8c9f9f696..d3e2607110 100644 --- a/meta/recipes-graphics/wayland/weston_1.10.0.bb +++ b/meta/recipes-graphics/wayland/weston_1.10.0.bb | |||
| @@ -11,6 +11,7 @@ SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | |||
| 11 | file://make-libwebp-explicitly-configurable.patch \ | 11 | file://make-libwebp-explicitly-configurable.patch \ |
| 12 | file://0001-make-error-portable.patch \ | 12 | file://0001-make-error-portable.patch \ |
| 13 | file://0001-configure.ac-Fix-wayland-protocols-path.patch \ | 13 | file://0001-configure.ac-Fix-wayland-protocols-path.patch \ |
| 14 | file://make-weston-launch-exit-for-unrecognized-option.patch \ | ||
| 14 | " | 15 | " |
| 15 | SRC_URI[md5sum] = "1cd17c54ecac6d9a3cd90bf12eaa3e20" | 16 | SRC_URI[md5sum] = "1cd17c54ecac6d9a3cd90bf12eaa3e20" |
| 16 | SRC_URI[sha256sum] = "e0b2004d00d8293ddf7903ca283c1746afa9ccb5919ab50fd04397ff472aa5c1" | 17 | SRC_URI[sha256sum] = "e0b2004d00d8293ddf7903ca283c1746afa9ccb5919ab50fd04397ff472aa5c1" |
