diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-28 16:56:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-28 16:56:25 +0000 |
commit | 1c314ad655af140b8ef4a271f4e657bf50218236 (patch) | |
tree | 55bc210e98047006b69c5d3831eb3b3fbcfdc576 /tar.c | |
parent | 47cac6779a4457e29b956aa864f0292fa7706bc1 (diff) | |
download | busybox-w32-1c314ad655af140b8ef4a271f4e657bf50218236.tar.gz busybox-w32-1c314ad655af140b8ef4a271f4e657bf50218236.tar.bz2 busybox-w32-1c314ad655af140b8ef4a271f4e657bf50218236.zip |
* Fixed a _horrible_ bug where 'tar -tvf' could unlink
local files!!! Fix thanks to Marius Groeger <mgroeger@sysgo.de>
* Added support for "sh -c command args...", also thanks to
Marius Groeger <mgroeger@sysgo.de>
-Erik
Diffstat (limited to '')
-rw-r--r-- | tar.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -648,7 +648,8 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag, | |||
648 | } | 648 | } |
649 | 649 | ||
650 | /* Remove any clutter lying in our way */ | 650 | /* Remove any clutter lying in our way */ |
651 | unlink( header.name); | 651 | if (extractFlag == TRUE) /* .. but only if we are extracting (as */ |
652 | unlink( header.name); /* opposed to listing) (rob@sysgo.de) */ | ||
652 | 653 | ||
653 | /* If we got here, we can be certain we have a legitimate | 654 | /* If we got here, we can be certain we have a legitimate |
654 | * header to work with. So work with it. */ | 655 | * header to work with. So work with it. */ |