Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #61669

Bug#903931: Maybe trailing garbage or data in an unsupported format is causing the problem?

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Antonio Diaz Diaz <antonio@gnu.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#903931: Maybe trailing garbage or data in an unsupported format is causing the problem?
Date Mon, 30 Jul 2018 00:50:01 +0200
Message-ID <wh2FH-808-3@gated-at.bofh.it> (permalink)
References <wcii6-89r-1@gated-at.bofh.it>
X-Original-To 903931@bugs.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sun Jul 29 22:48:10 2018
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.05
Reply-To Antonio Diaz Diaz <antonio@gnu.org>, 903931@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 903931
X-Debian-Pr-Package initramfs-tools
X-Debian-Pr-Source initramfs-tools
X-Spam-Bayes score:0.0000 Tokens: new, 17; hammy, 116; neutral, 35; spammy, 3. spammytokens:0.987-1--H*RU:sk:167.red, 0.987-1--H*r:sk:167.red, 0.987-1--Hx-spam-relays-external:sk:167.red hammytokens:0.000-+--Hx-spam-relays-external:sk:fencepo, 0.000-+--HX-detected-operating-system:eggs.gnu.org, 0.000-+--HX-detected-operating-system:Linux, 0.000-+--HX-detected-operating-system:GNU, 0.000-+--H*RU:eggs.gnu.org
User-Agent Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14
MIME-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Detected-Operating-System by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 2001:4830:134:3::e
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1475734
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 30 Jul 2018 00:44:50 +0200
X-Original-Message-ID <5B5E4362.9040801@gnu.org>
X-Original-References <1443448681.5299882.1531772233505@mail.yahoo.com>
Xref csiph.com linux.debian.bugs.dist:910154 linux.debian.kernel:61669

Cross-posted to 2 groups.

Show key headers only | View raw


Note in the code below that by using a multi-format zcat, other data not 
in one of the formats supported by the zcat used may be no longer 
ignored but passed to cpio (possibly compressed), which may be the cause 
of the problem.

Using the compressors directly to test the format (without *zcat 
wrappers) guarantees that the "other data" is indeed ignored.

         if zcat -t "$archive" >/dev/null 2>&1 ; then
                 zcat "$archive"
         elif xzcat -t "$archive" >/dev/null 2>&1 ; then
                 xzcat "$archive"
         elif lz4cat -t "$archive" >/dev/null 2>&1 ; then
                 lz4cat "$archive"
         elif bzip2 -t "$archive" >/dev/null 2>&1 ; then
                 bzip2 -c -d "$archive"
         elif lzop -t "$archive" >/dev/null 2>&1 ; then
                 lzop -c -d "$archive"
         # Ignoring other data, which may be garbage at the end of the file
         fi | (
                 if [ -n "$dir" ]; then
                         mkdir -p -- "$dir"
                         cd -- "$dir"
                 fi
                 cpio "$@"
         )

Back to linux.debian.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) john terragon <terragonjohn@yahoo.com> - 2018-07-16 22:30 +0200
  Processed: Re: [initramfs-tools-core] unmkinitramfs uses "-t" for  zcat like it was a "test integrity" option (it's not and it causes  crashes) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-07-18 07:10 +0200
  Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) Ben Hutchings <ben@decadent.org.uk> - 2018-07-18 07:10 +0200
  Bug#903931: Neither zcat nor xzcat should be used in scripts Antonio Diaz Diaz <antonio@gnu.org> - 2018-07-27 09:50 +0200
  Bug#903931: Maybe trailing garbage or data in an unsupported format is causing the problem? Antonio Diaz Diaz <antonio@gnu.org> - 2018-07-30 00:50 +0200

csiph-web