From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6244BE008B8; Mon, 16 May 2016 12:12:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.66 listed in list.dnswl.org] Received: from mail-qg0-f66.google.com (mail-qg0-f66.google.com [209.85.192.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D1659E0086E for ; Mon, 16 May 2016 12:12:51 -0700 (PDT) Received: by mail-qg0-f66.google.com with SMTP id f74so14545731qge.3 for ; Mon, 16 May 2016 12:12:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=b+tausN9eySf73ISpR5eB874H91ZwaOo87cf/c1JYh4=; b=kjfgYke24Ng3iRCNGgeRtQSarKaU/x/ailbCNNUj0koCjsT/taFNf3ErhRi8biRulC kksCQAYEGqvxp6ZG2D4vxdCtF0qaUYfDmo0yNmFlAdTWYrBXonnfBSYArUAhfHRbh8KO IFeO05uiUjax/wZ3GqT4ggFtCToKI1+zaXBd186RuCIotsoHrIUOv5KsKsGag5TT5bgv zGz2s8I4zfeos+kZRuobj0U55yEGFgFtJe0bWFYTf8cZCGs1FbVjJVufIbF061N0BL3k u+JdlIP4fK8vUJEG/I/8KYb8mzV3cy+9W1zUHCSr3AK+BMapX39m8RgJF7t9/JcvJtTB N9/A== X-Gm-Message-State: AOPr4FXGICImGtjDgefBsaWMw5zOLjAUkzd1TclJvP9P4vdOHD3RmlnoZGY4+jc7bvWiPw== X-Received: by 10.140.181.70 with SMTP id c67mr32803050qha.20.1463425971201; Mon, 16 May 2016 12:12:51 -0700 (PDT) Received: from localhost ([187.23.154.250]) by smtp.gmail.com with ESMTPSA id c68sm15411721qgc.12.2016.05.16.12.12.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 May 2016 12:12:49 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 16 May 2016 16:12:41 -0300 From: Otavio Salvador To: OpenEmbedded Core Mailing List Date: Mon, 16 May 2016 16:12:00 -0300 Message-Id: <1463425932-10080-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1463425932-10080-1-git-send-email-otavio@ossystems.com.br> References: <1463425932-10080-1-git-send-email-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: prabhu.sundararaj@nxp.com, Otavio Salvador , meta-freescale Mailing List Subject: [oe-core PATCH v6 02/14] weston: weston-launch: Handle invalid command line options X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2016 19:12:55 -0000 From: Tom Hochstein Exit the program if an unrecognized command line option is found. Signed-off-by: Tom Hochstein Signed-off-by: Otavio Salvador --- Changes in v6: - Rebase on top of 1.10 Changes in v5: - New patch. Changes in v4: None Changes in v3: None Changes in v2: None ...eston-launch-exit-for-unrecognized-option.patch | 33 ++++++++++++++++++++++ meta/recipes-graphics/wayland/weston_1.10.0.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch 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 0000000..25c8683 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston/make-weston-launch-exit-for-unrecognized-option.patch @@ -0,0 +1,33 @@ +From e8b615250f700f7854b423aaaf0a0aeea92c05a9 Mon Sep 17 00:00:00 2001 +From: Tom Hochstein +Date: Sat, 7 May 2016 08:51:58 -0300 +Subject: [PATCH] weston-launch: Handle invalid command line options +Organization: O.S. Systems Software LTDA. + +Exit the program if an unrecognized command line option is found. + +Upstream-Status: Submitted + +Signed-off-by; Tom Hochstein +Signed-off-by: Otavio Salvador +--- + + src/weston-launch.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/weston-launch.c b/src/weston-launch.c +index b8dfb17..9987d8e 100644 +--- a/src/weston-launch.c ++++ b/src/weston-launch.c +@@ -703,6 +703,8 @@ main(int argc, char *argv[]) + case 'h': + help("weston-launch"); + exit(EXIT_FAILURE); ++ default: ++ exit(EXIT_FAILURE); + } + } + +-- +2.8.2 + diff --git a/meta/recipes-graphics/wayland/weston_1.10.0.bb b/meta/recipes-graphics/wayland/weston_1.10.0.bb index fec1e9f..5885a7c 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 \ file://make-libwebp-explicitly-configurable.patch \ file://0001-make-error-portable.patch \ file://0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch \ + file://make-weston-launch-exit-for-unrecognized-option.patch \ " SRC_URI[md5sum] = "1cd17c54ecac6d9a3cd90bf12eaa3e20" SRC_URI[sha256sum] = "e0b2004d00d8293ddf7903ca283c1746afa9ccb5919ab50fd04397ff472aa5c1" -- 2.8.2