[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] Extracting archives with sparse files still broken in 1.27
From: |
Mark |
Subject: |
[Bug-tar] Extracting archives with sparse files still broken in 1.27 |
Date: |
Sun, 6 Oct 2013 13:32:39 +0100 |
User-agent: |
SquirrelMail/1.4.21 |
Hi,
Just a heads-up... I just downloaded GNU tar 1.27 and noticed that the
extraction bug for archives containing sparse files is still present. :(
The bug shows up when attempting to extract archives which were created by
star with its "artype=xustar" option.
Sergey Poznyakoff originally posted a patch for the bug in February 2011, see
http://lists.gnu.org/archive/html/bug-tar/2011-02/msg00011.html
I applied that patch to the tar 1.27 source and it does fix the bug.
Without the patch, tar gets very confused and can create zero-length files
with "garbage" names. Here's an example of the output of the unpatched tar
when trying to extract a particular archive:
$ tar -xf test_star.tar
tar: Skipping to next header
tar: Substituting `.' for empty member name
tar: .: Cannot open: Is a directory
tar: Skipping to next header
tar: Skipping to next header
tar: Archive contains '\0009\026B\002\002\001\001H\0`\001' where numeric
off_t value expected
tar: Substituting `.' for empty member name
tar: .: Cannot open: Is a directory
tar: Skipping to next header
tar: Skipping to next header
tar: Substituting `.' for empty member name
tar: .: Cannot open: Is a directory
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: Substituting `.' for empty member name
tar: .: Cannot open: Is a directory
tar: Skipping to next header
tar: Substituting `.' for empty member name
tar: .: Cannot open: Is a directory
tar: Skipping to next header
tar: Substituting `.' for empty member name
tar: .: Cannot open: Is a directory
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
-- Mark
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-tar] Extracting archives with sparse files still broken in 1.27,
Mark <=