[BusyBox] tar won't overwrite existing files
Steven Scholz
steven.scholz at imc-berlin.de
Wed Nov 19 10:29:30 UTC 2003
Glenn,
> This change in behaviour came about because i removed some extra unlink
> statments that shouldnt be needed, but forgot to set the
> ARCHIVE_EXTRACT_UNCONDITIONAL flag in tar.c to compensate. It is now
> behaving with a default unlinking first, as it was a week or so ago.
Still having trouble:
My archive contains:
/var/tmp # tar tvzf data.tar.gz
drwxr-xr-x 0/0 0 2003-11-14 11:50:34 ./
drwxr-xr-x 0/0 0 2003-11-14 11:51:13 ./test/
drwxr-xr-x 0/0 0 2003-11-14 11:51:09 ./test/sbin/
-rwxr-xr-x 0/0 48088 2003-08-28 08:04:22 ./test/sbin/cardmgr
-rw-r--r-- 0/0 42 2003-08-28 08:12:06 ./test/sbin/cardmgr.md5
drwxr-xr-x 0/0 0 2003-11-14 15:56:41 ./test/etc/
-rw-r--r-- 0/0 58 2003-11-14 15:56:41 ./test/etc/cardmgr.conf
And I get
/var/tmp # tar xvzf data.tar.gz
./
tar: Couldnt remove old file: Is a directory
!?!?
This all was working a while ago!
Steven
More information about the busybox
mailing list