NetBSD-Bugs archive

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

bin/39992: tar -C -T coredumps



>Number:         39992
>Category:       bin
>Synopsis:       tar -tzf file.tgz -C path -T list core dumps
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 21 10:00:01 +0000 2008
>Originator:     Stephen Borrill
>Release:        NetBSD 5.0_BETA
>Organization:
Precedence Technologies Ltd
>Environment:
        
        
System: NetBSD devel5.precedence.co.uk 5.0_BETA NetBSD 5.0_BETA (XEN3_DOMU) #1: 
Mon Nov 17 11:18:55 GMT 2008 
root@ugly:/usr/src/5.0/obj.i386/sys/arch/i386/compile/XEN3_DOMU i386
Architecture: i386
Machine: i386
>Description:
Run: tar -tzf file.tgz -C path -T list
This will core dump however this will not: tar -tzf -T list -C path
i.e. swap the -T and -C options
>How-To-Repeat:
devel5# mkdir a
devel5# touch a/b
devel5# echo a/b > list
devel5# tar -czf a.tgz a
devel5# mkdir out
devel5# tar -tzf a.tgz -C out -T list
Segmentation fault(core dumped)
devel5# tar -tzf a.tgz -T list -C out
a/b
>Fix:
Workaround is to ensure the -T option is before the -C option

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index