All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Max Reitz <mreitz@redhat.com>, qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-stable <qemu-stable@nongnu.org>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-2.10 1/3] qemu-img/convert: Always set ret < 0 on error
Date: Fri, 14 Apr 2017 12:27:36 -0300	[thread overview]
Message-ID: <e8e1a96e-56f7-b154-08f5-3a184369c95c@amsat.org> (raw)
In-Reply-To: <20170413203401.3213-2-mreitz@redhat.com>

On 04/13/2017 05:33 PM, Max Reitz wrote:
> Otherwise the qemu-img process will exit with EXIT_SUCCESS instead of
> EXIT_FAILURE.
>
> Cc: qemu-stable <qemu-stable@nongnu.org>
> Signed-off-by: Max Reitz <mreitz@redhat.com>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  qemu-img.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/qemu-img.c b/qemu-img.c
> index 37c2894678..f2809e1ab4 100644
> --- a/qemu-img.c
> +++ b/qemu-img.c
> @@ -2069,6 +2069,7 @@ static int img_convert(int argc, char **argv)
>              opts = qemu_opts_parse_noisily(&qemu_object_opts,
>                                             optarg, true);
>              if (!opts) {
> +                ret = -1;
>                  goto fail_getopt;
>              }
>              break;
> @@ -2081,6 +2082,7 @@ static int img_convert(int argc, char **argv)
>      if (qemu_opts_foreach(&qemu_object_opts,
>                            user_creatable_add_opts_foreach,
>                            NULL, NULL)) {
> +        ret = -1;
>          goto fail_getopt;
>      }
>
>

  parent reply	other threads:[~2017-04-14 15:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 20:33 [Qemu-devel] [PATCH for-2.10 0/3] qemu-img/convert: Some small fixes Max Reitz
2017-04-13 20:33 ` [Qemu-devel] [PATCH for-2.10 1/3] qemu-img/convert: Always set ret < 0 on error Max Reitz
2017-04-13 21:10   ` Eric Blake
2017-04-14 15:27   ` Philippe Mathieu-Daudé [this message]
2017-04-13 20:34 ` [Qemu-devel] [PATCH for-2.10 2/3] qemu-img/convert: Use @opts for one thing only Max Reitz
2017-04-13 21:13   ` Eric Blake
2017-04-13 20:34 ` [Qemu-devel] [PATCH for-2.10 3/3] qemu-img/convert: Move bs_n > 1 && -B check down Max Reitz
2017-04-13 21:17   ` Eric Blake
2017-04-19 12:38     ` Max Reitz
2017-04-19 15:49 ` [Qemu-devel] [PATCH for-2.10 0/3] qemu-img/convert: Some small fixes Kevin Wolf
2017-04-26 12:48   ` Max Reitz
2017-04-26 13:06     ` Kevin Wolf

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=e8e1a96e-56f7-b154-08f5-3a184369c95c@amsat.org \
    --to=f4bug@amsat.org \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.