NetBSD-Bugs archive

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

bin/41167: tar failure (inexplicable, easily reproduced)



>Number:         41167
>Category:       bin
>Synopsis:       tar failure (inexplicable, easily reproduced)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 07 15:45:00 +0000 2009
>Originator:     Perry E. Metzger
>Release:        NetBSD 5.99.8
>Organization:
        
>Environment:
        
        
System: NetBSD bellman.cb.piermont.com 5.99.8 NetBSD 5.99.8 (GENERIC) amd64
Architecture: x86_64
Machine: amd64
>Description:

tar(1) fails in a particular weird case (exemplified by untaring a
pair of files from a base.tgz netbsd install set.)

gtar succeeds in the same case with no trouble.

>How-To-Repeat:

Fails:
tar -xzf releasedir/amd64/binary/sets/base.tgz ./rescue/[ ./rescue/atactl
Succeeds:
gtar -xzf releasedir/amd64/binary/sets/base.tgz ./rescue/[ ./rescue/atactl

See this transcript:

$ tar -xzf /releasedir/amd64/binary/sets/base.tgz ./rescue/[ ./rescue/atactl
tar: Cannot link to ./rescue/[ from ./rescue/atactl (No such file or directory)
tar: WARNING! These patterns were not matched:
./rescue/[
$ ls rescue
ls: rescue: No such file or directory
$ gtar -xzf releasedir/amd64/binary/sets/base.tgz ./rescue/[ ./rescue/atactl
$ ls -l rescue
total 10112
-r-xr-xr-x  2 perry  staff  5148632 Apr  5 14:58 [
-r-xr-xr-x  2 perry  staff  5148632 Apr  5 14:58 atactl

>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index