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: Paul Eggert
Subject: Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives
Date: Mon, 10 Dec 2007 14:14:32 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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?




reply via email to

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