[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] closed stderr can make tar corrupt its output archive
From: |
Ralph Corderoy |
Subject: |
Re: [Bug-tar] closed stderr can make tar corrupt its output archive |
Date: |
Sun, 28 Aug 2005 09:11:17 +0100 |
Hi Jim,
> The bug is that tar assumed open/creat would never return 2. The
> patch I supplied shows that this bug in GNU tar can be fixed with
> minimal effort.
Here's a simpler test case.
$ tar cf >(od -c) missingfile 2>&-
0000000 t a r : m i s s i n g f i l e
0000020 : C a n n o t s t a t : N
0000040 o s u c h f i l e o r d
0000060 i r e c t o r y \n \0 \0 \0 \0 \0 \0 \0
0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0024060 \0 \0 \0 \0 \0 \0 \0 \0 \0
0024071
$
Cheers,
Ralph.
Re: [Bug-tar] closed stderr can make tar corrupt its output archive, Sergey Poznyakoff, 2005/08/28