[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives
From: |
Radek Brich |
Subject: |
Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives |
Date: |
Tue, 11 Dec 2007 13:34:01 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 0.20071012.724442) |
On Mon 10. of December 2007 23:14:32 Paul Eggert wrote:
> Radek Brich <address@hidden> writes:
> > Are users supposed to avoid this
>
> Yes. (:-)
>
> > maybe there are other ways (e.g. somehow test if file
> > descriptor points to stdout).
>
> Yes, that would be much better than trying to support /dev/stdout,
> /dev/fd/0, etc., etc. It would also handle this case:
>
> tar -cf foo ... >foo
>
> Can you prepare a patch along those lines?
Well, I made a patch based on i-node comparison, see attachment. It works in
all cases you named. Although it'd need some cleaning, I'd like to hear what
you think about the idea?
Despite the other replies, I think some users could appreciate this fixed.
--
Radek Brich
/__\ Base OS/core services
~~~~~~~~ Red Hat Czech, Brno
tar-1.17-stdoutlist.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives,
Radek Brich <=
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Sergey Poznyakoff, 2007/12/11
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Radek Brich, 2007/12/11
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Radek Brich, 2007/12/11
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Jim Meyering, 2007/12/12
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Radek Brich, 2007/12/12
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Radek Brich, 2007/12/12
- Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Paul Eggert, 2007/12/17