Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: wenzong.fan@windriver.com
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] bzip2: fix bunzip2 -qt returns 0 for corrupt archives
Date: Mon, 12 Oct 2015 13:54:15 +0100	[thread overview]
Message-ID: <1444654455.3844.3.camel@linuxfoundation.org> (raw)
In-Reply-To: <1444642535-196919-1-git-send-email-wenzong.fan@windriver.com>

On Mon, 2015-10-12 at 05:35 -0400, wenzong.fan@windriver.com wrote:
> From: Wenzong Fan <wenzong.fan@windriver.com>
> 
> "bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file.
> "bzip2 -qt FILE" returns 0 when this happens, although it does print out
> an error message as is does so.
> 
> This has been fix by Debian, just port changes from Debian patch file
> "20-legacy.patch":
> 
> * Fixed "bunzip2 -qt returns 0 for corrupt archives" (Closes: #279025).
> 
> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
> ---
>  ...bunzip2-qt-returns-0-for-corrupt-archives.patch | 49 ++++++++++++++++++++++
>  meta/recipes-extended/bzip2/bzip2_1.0.6.bb         |  1 +
>  2 files changed, 50 insertions(+)
>  create mode 100644 meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch
> 
> diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch b/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch
> new file mode 100644
> index 0000000..63d705d
> --- /dev/null
> +++ b/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch
> @@ -0,0 +1,49 @@
> +From 8068659388127e8e63f2d2297ba2348c72b20705 Mon Sep 17 00:00:00 2001
> +From: Wenzong Fan <wenzong.fan@windriver.com>
> +Date: Mon, 12 Oct 2015 03:19:51 -0400
> +Subject: [PATCH] bzip2: fix bunzip2 -qt returns 0 for corrupt archives
> +
> +"bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file.
> +"bzip2 -qt FILE" returns 0 when this happens, although it does print out
> +an error message as is does so.
> +
> +This has been fix by Debian, just port changes from Debian patch file
> +"20-legacy.patch":
> +
> +* Fixed "bunzip2 -qt returns 0 for corrupt archives" (Closes: #279025).
> +
> +Upstream-Status: Backport [Debian]
> +

What is the upstream position on this issue? That they won't fix it? I'm
not sure Backport is right for a debian patch since debian is not the
bzip2 upstream.

Cheers,

Richard



  reply	other threads:[~2015-10-12 12:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-12  9:35 [PATCH] bzip2: fix bunzip2 -qt returns 0 for corrupt archives wenzong.fan
2015-10-12 12:54 ` Richard Purdie [this message]
2015-10-13  2:04   ` Robert Yang
2015-10-13 12:48     ` Burton, Ross
2015-10-14  2:28       ` wenzong fan

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=1444654455.3844.3.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=wenzong.fan@windriver.com \
    /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