big troubles with busybox tar (v0.36)
Hello Erik,
I'm having big troubles with your latest tar command (busybox v0.36). All
files are created as directories.
For example:
# zcat drivers.tgz | busybox tar -xvf -
x ./
x modconf.tgz
modconf.tgz: Is a directory
x modules.tgz
modules.tgz: Is a directory
x modcont
modcont: Is a directory
x install.sh
install.sh: Is a directory
x type.txt
type.txt: Is a directory
Broken pipe
# l -l
total 5
drwxr-xr-x 2 root root 1024 Nov 21 23:04 install.sh
drwxr-xr-x 2 root root 1024 Nov 21 23:04 modconf.tgz
drwxr-xr-x 3 root root 1024 Nov 21 23:04 modcont
drwxr-xr-x 2 root root 1024 Nov 21 23:04 modules.tgz
drwxr-xr-x 3 root root 1024 Nov 21 23:04 type.txt
I guess the problem is at line 546 (tar.c) but I don't have time to fix it now.
Could you take a look at it ?
/*
* There is a file to write.
* First create the path to it if necessary with a default permission.
*/
createPath (name, 0777);
^^^^^^^^^^
here, name is the name of the file, not only the directory part.
Regards.
--
Eric Delaunay | "La guerre justifie l'existence des militaires.
delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)
Reply to: