Bug#334426: tar incorrectly handles sparse archives, upstream patch available, or downgrade is fix...

2005-10-19 Thread Andreas Sundstrom
 On Mon, 2005-10-17 at 14:36 -0600, Michael Loftis wrote:
 Package: tar
 Version: 1.14-2
 Severity: important
 
 ...
 ./htdocs/nationwide/themes/templates/
 ./htdocs/nationwide/themes/templates/old_files/
 ./htdocs/nationwide/untitled/
 tar: ./htdocs/class1/test/RoomSchedSymbols.fla: invalid sparse archive
 member
 tar: Skipping to next header
 
 Is this still a problem with tar 1.15.1-2, currently in unstable?
 

No, upgrading to 1.15.1-2 fixes it.

I hope the following makes it easy for you to reproduce

$ cat test.sh
#!/bin/bash

echo   aoeu
dd if=/dev/zero of=sparse seek=10 count=1 bs=1M
echo   zaoeu

tar -cSf sparse.tar aoeu sparse zaoeu

tar -tvf sparse.tar aoeu
echo Error level: $?

tar -cf sparse.tar aoeu sparse zaoeu

tar -tvf sparse.tar aoeu
echo Error level: $?

-

[EMAIL PROTECTED]:/tmp/tar-test$ sh test.sh
1+0 records in
1+0 records out
1048576 bytes transferred in 0,003606 seconds (290781099 bytes/sec)
-rw-r--r-- sunkan/sunkan 9 2005-10-19 11:15:29 aoeu
tar: sparse: invalid sparse archive member
tar: Skipping to next header
tar: Error exit delayed from previous errors
Error level: 2
-rw-r--r-- sunkan/sunkan 9 2005-10-19 11:15:29 aoeu
Error level: 0
[EMAIL PROTECTED]:/tmp/tar-test$ su
Password:
sunkan:/tmp/tar-test# aptitude
(Reading database ... 85530 files and directories currently installed.)
Preparing to replace tar 1.14-2 (using
.../archives/tar_1.15.1-2_i386.deb) ...
Unpacking replacement tar ...
Setting up tar (1.15.1-2) ...

Press return to continue.

sunkan:/tmp/tar-test# exit
[EMAIL PROTECTED]:/tmp/tar-test$ sh test.sh
1+0 records in
1+0 records out
1048576 bytes transferred in 0,003398 seconds (308596321 bytes/sec)
-rw-r--r-- sunkan/sunkan 9 2005-10-19 11:16:54 aoeu
Error level: 0
-rw-r--r-- sunkan/sunkan 9 2005-10-19 11:16:54 aoeu
Error level: 0
[EMAIL PROTECTED]:/tmp/tar-test$

/Andreas Sundstrom


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#334426: tar incorrectly handles sparse archives, upstream patch available, or downgrade is fix...

2005-10-17 Thread Michael Loftis
Package: tar
Version: 1.14-2
Severity: important

...
./htdocs/nationwide/themes/templates/
./htdocs/nationwide/themes/templates/old_files/
./htdocs/nationwide/untitled/
tar: ./htdocs/class1/test/RoomSchedSymbols.fla: invalid sparse archive
member
tar: Skipping to next header


same archive is fine when extracted with tar 1.13.25-2 -- archive
created with tar 1.13.25-2 on debian woody.  extracting from tape/stream
device, Quantum DLT7000.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages tar depends on:
ii  libc6   2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#334426: tar incorrectly handles sparse archives, upstream patch available, or downgrade is fix...

2005-10-17 Thread Bdale Garbee
On Mon, 2005-10-17 at 14:36 -0600, Michael Loftis wrote:
 Package: tar
 Version: 1.14-2
 Severity: important
 
 ...
 ./htdocs/nationwide/themes/templates/
 ./htdocs/nationwide/themes/templates/old_files/
 ./htdocs/nationwide/untitled/
 tar: ./htdocs/class1/test/RoomSchedSymbols.fla: invalid sparse archive
 member
 tar: Skipping to next header

Is this still a problem with tar 1.15.1-2, currently in unstable?

Bdale



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]