Openembedded Core Discussions
 help / color / mirror / Atom feed
From: <Chong.Lu@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] minicom: fix -v/-h return value
Date: Thu, 17 Oct 2013 11:30:44 +0800	[thread overview]
Message-ID: <1381980644-28725-1-git-send-email-Chong.Lu@windriver.com> (raw)

From: Lu Chong <Chong.Lu@windriver.com>

The previous return value for '-h' and '-v' options was 1 which was
not correct. These two options should return 0 instead.

Signed-off-by: Lu Chong <Chong.Lu@windriver.com>
---
 ...001-fix-minicom-v-h-return-value-is-not-0.patch |   37 ++++++++++++++++++++
 meta/recipes-extended/minicom/minicom_2.6.2.bb     |    1 +
 2 files changed, 38 insertions(+)
 create mode 100644 meta/recipes-extended/minicom/minicom-2.6.2/0001-fix-minicom-v-h-return-value-is-not-0.patch

diff --git a/meta/recipes-extended/minicom/minicom-2.6.2/0001-fix-minicom-v-h-return-value-is-not-0.patch b/meta/recipes-extended/minicom/minicom-2.6.2/0001-fix-minicom-v-h-return-value-is-not-0.patch
new file mode 100644
index 0000000..0b6cd87
--- /dev/null
+++ b/meta/recipes-extended/minicom/minicom-2.6.2/0001-fix-minicom-v-h-return-value-is-not-0.patch
@@ -0,0 +1,37 @@
+From a630a4d2acbdc727d727f5373f3d4b79ad33f7d6 Mon Sep 17 00:00:00 2001
+From: Lu Chong <Chong.Lu@windriver.com>
+Date: Thu, 17 Oct 2013 11:05:48 +0800
+Subject: [PATCH] fix minicom -v/-h return value is not 0
+
+Upstream-Status: Pending
+
+Signed-off-by: Lu Chong <Chong.Lu@windriver.com>
+
+---
+ src/minicom.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/minicom.c b/src/minicom.c
+index e1a557b..41573b5 100644
+--- a/src/minicom.c
++++ b/src/minicom.c
+@@ -1166,14 +1166,14 @@ int main(int argc, char **argv)
+ 	         "modify it under the terms of the GNU General Public License\n"
+                  "as published by the Free Software Foundation; either version\n"
+                  "2 of the License, or (at your option) any later version.\n\n");
+-          exit(1);
++          exit(0);
+           break;
+         case 's': /* setup mode */
+           dosetup = 1;
+           break;
+         case 'h':
+           helpthem();
+-          exit(1);
++          exit(0);
+           break;
+         case 'p': /* Pseudo terminal to use. */
+           if (strncmp(optarg, "/dev/", 5) == 0)
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-extended/minicom/minicom_2.6.2.bb b/meta/recipes-extended/minicom/minicom_2.6.2.bb
index 558867d..96a2179 100644
--- a/meta/recipes-extended/minicom/minicom_2.6.2.bb
+++ b/meta/recipes-extended/minicom/minicom_2.6.2.bb
@@ -10,6 +10,7 @@ PR = "r0"
 
 SRC_URI = "http://alioth.debian.org/frs/download.php/3869/minicom-${PV}.tar.gz \
            file://allow.to.disable.lockdev.patch \
+           file://0001-fix-minicom-v-h-return-value-is-not-0.patch \
 "
 
 SRC_URI[md5sum] = "203c56c4b447f45e2301b0cc4e83da3c"
-- 
1.7.9.5



             reply	other threads:[~2013-10-17  3:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17  3:30 Chong.Lu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-10-16  7:02 [PATCH] minicom: fix -v/-h return value Chong.Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1381980644-28725-1-git-send-email-Chong.Lu@windriver.com \
    --to=chong.lu@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox