[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: |
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?
Re: [Bug-tar] tar -vf /dev/stdout produces corrupted archives, Radek Brich, 2007/12/11