[BusyBox] 1.00-rc1: tar still doesn't extract directories properly

Robert P. J. Day rpjday at mindspring.com
Tue Jul 20 13:26:57 UTC 2004


   the rc1 version of "tar" still doesn't extract directories from a 
tarball properly.  consider the behaviour of GNU tar on a simple 
tarball:

[rpjday at localhost tmp]$ tar tvf nodot.tar
drwxrwxr-x rpjday/rpjday     0 2004-07-20 07:11:37 d1/
-rw-r--r-- rpjday/rpjday  2773 2004-07-20 07:11:37 d1/passwd
drwxrwxr-x rpjday/rpjday     0 2004-07-20 07:11:42 d2/
-rw-r--r-- rpjday/rpjday   898 2004-07-20 07:11:42 d2/group

[rpjday at localhost tmp]$ tar xvf nodot.tar d1
d1/
d1/passwd	<-- note recursive extraction just given arg "d1"

   BB tar, however, does the following:

/tmp # tar tvf t.tar
drwxr-xr-x 0/0         0 2038-01-18 22:14:07 d2
-rw-r--r-- 0/0       227 2038-01-18 22:14:07 d2/passwd
drwxr-xr-x 0/0         0 2038-01-18 22:14:07 d1
-rw-r--r-- 0/0       227 2038-01-18 22:14:07 d1/passwd

/tmp # tar xvf t.tar d1
d1		<-- creates only empty directory

shouldn't the behaviour be consistent with GNU tar?

rday





More information about the busybox mailing list