delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/25/12:05:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 25 Jan 2004 12:05:46 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: pobelov AT mail DOT ru
Subject: Re: [bug] cygwin-1.5.6-1: corruption on tar | bzip2 > file.tar.bz2
Message-ID: <20040125170546.GA1594@redhat.com>
Mail-Followup-To: cygwin AT cygwin DOT com, pobelov AT mail DOT ru
References: <401298CB DOT 4030607 AT mail DOT ru> <4013C3B3 DOT 40105 AT mail DOT ru>
Mime-Version: 1.0
In-Reply-To: <4013C3B3.40105@mail.ru>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

On Sun, Jan 25, 2004 at 02:25:07PM +0100, Ilya Pobelov wrote:
>>>After installing cygwin-1.5.6-1 files created with
>>>tar -c <names> | bzip2 > file.tar.bz2
>>>were corrupted (bzip2 reports CRC cheking error when trying to unpack).
>>>With cygwin-1.5.6-1 such command works as expected.
>
>I am very sorry, I made a missprint. Everything worked fine with 
>previous version cygwin-1.5.5-1
>
>>The tar command + pipe that you specify would not produce a compressed
>>tar archive since tar -c <names> would not produce anything on stdout
>>for bzip2 to compress.

Actually, I was wrong here.  This would work fine.  Apologies.

>bash-2.05b$ tar -c work | bzip2 > work.tar.bz2
>bash-2.05b$ bzip2 -t work.tar.bz2
>bzip2: work.tar.bz2: data integrity (CRC) error in data
>
>You can use the `bzip2recover' program to attempt to recover
>data from undamaged sections of corrupted files.
>
>bash-2.05b$ rm work.tar.bz2
>bash-2.05b$ tar -cf - work | bzip2 > work.tar.bz2
>bash-2.05b$ bzip2 -t work.tar.bz2
>bzip2: work.tar.bz2: data integrity (CRC) error in data
>
>You can use the `bzip2recover' program to attempt to recover
>data from undamaged sections of corrupted files.

Sorry, but as previously indicated, I can't duplicate this.

See http://cygwin.com/problems.html for a description of how to report
problems that might help.

If I were you, I would be comparing the difference between the working
and non-working cases, like is the file size different?  I'd also try
the most recent snapshot:  http://cygwin.com/snapshots.html .

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019