bug-tar
[Top][All Lists]
Advanced

[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

Attachment: tar-1.17-stdoutlist.patch
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]