bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obscure bug (found in 1.13.x, including 1.13.25)


From: Paul Eggert
Subject: Re: Obscure bug (found in 1.13.x, including 1.13.25)
Date: Mon, 1 Oct 2001 14:33:42 -0700 (PDT)

> From: Dana Lacoste <address@hidden>
> Date: Mon, 1 Oct 2001 06:50:18 -0700
> 
> We use a package system that we call APM but it's really
> just a plain old tar file.  If I try to delete a file in the
> tar file called "archive" it deletes a lot more than it should :

I can't reproduce that problem on either Solaris 8 or GNU/Linux 2.2.

> Any suggestions?

What is the output of "make check"?

If "make check" succeeds, please edit tests/Makefile to add a new file
"delete04.sh" to TESTS, put the following into tests/delete04.sh (as
an executable file), and run "make check" again.  This test attempts
to mimic your problem.

#! /bin/sh
# Deleting a large last member was destroying earlier members.

. ./preset
. $srcdir/before

set -e
genfile -l      3 >file1
genfile -l      5 >file2
genfile -l      3 >file3
genfile -l      6 >file4
genfile -l     24 >file5
genfile -l     13 >file6
genfile -l   1385 >file7
genfile -l     30 >file8
genfile -l     10 >file9
genfile -l 256000 >file10
tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
tar f archive --delete file10
tar tf archive

out="\
file1
file2
file3
file4
file5
file6
file7
file8
file9
"

. $srcdir/after



> PS: If there is a gnu-tar mailing list (bug list or announce list) that
>     I should be following for things like this can you let me know?

address@hidden is the right place.



reply via email to

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