Busybox tar wont extract properly

Deon George deon at wurley.net
Mon Jan 22 01:01:34 UTC 2001


Package: busybox
Version: 0.48
Severity: normal

Hi Matt,

Thanks for fixing that permissions problem - I think I have found another
bug with tar? (I am using the patched tar.c from bug 1091)

I have this tar file:

[root at platypus koala]# tar tzf /tftpboot/debug.pkg
bin/
bin/vi
bin/netstat
bin/bash
bin/tar
[... snip ...]
usr/
usr/bin/
usr/bin/strace
usr/sbin/
usr/sbin/tcpdump
usr/sbin/traceroute
usr/sbin/ntpq

If I execute tar xzf <tarfile> <directory>, it only creates that top
directly, it doesn't extract all files. eg: "tar xzf debug.pkg usr",
should extract evertying from usr/ down. Also, a "tar xzf debug.pkg
usr/bin/strace" should just extract strace, but only creates usr/. Here
some output...

[root at roo tmp]# tar xzf /tmp/debug.pkg usr
[root at roo tmp]# ls -al
drwxr-xr-x   3 root     root         1024 Jan 22 11:45 .
drwxr-xr-x   7 root     root         1024 Jan 22 11:44 ..
drwxr-xr-x   2 root     root         1024 Nov 18 09:45 usr
[root at roo tmp]# ls -al usr
drwxr-xr-x   2 root     root         1024 Nov 18 09:45 .
drwxr-xr-x   3 root     root         1024 Jan 22 11:45 ..

A simple "tar xzf /tmp/debug.pkg" extracts everyting
perfectly.

[root at roo tmp]# tar xzf /tmp/debug.pkg
[root at roo tmp]# ls -al usr
drwxr-xr-x   4 root     root         1024 Jan 22 11:45 .
drwxr-xr-x   7 root     root         1024 Jan 22 11:45 ..
drwxr-xr-x   2 root     root         1024 Jan 22 11:45 bin
drwxr-xr-x   2 root     root         1024 Jan 22 11:45 sbin
[root at roo tmp]# ls -al usr/bin
drwxr-xr-x   2 root     root         1024 Jan 22 11:45 .
drwxr-xr-x   4 root     root         1024 Jan 22 11:45 ..
-rwxr-xr-x   1 root     root       102832 Feb  4  2000 strace

Thanks...

...deon
---
 _--_|\   | Deon George <deon at wurley.net>
/      \  | For a PGP key finger me!
\_.--.*/  | 
      v   | This email coming to you from the 'burbs of Melbourne, Australia.


---------------------------------------
Received: (at 1095-done) by bugs.lineo.com; 22 Jan 2001 05:28:36 +0000


More information about the busybox mailing list