diff options
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -600,9 +600,9 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag, | |||
600 | printf("\n"); | 600 | printf("\n"); |
601 | } | 601 | } |
602 | 602 | ||
603 | /* Remove any clutter lying in our way */ | 603 | /* Remove files if we would overwrite them */ |
604 | if (extractFlag == TRUE) /* .. but only if we are extracting (as */ | 604 | if (extractFlag == TRUE && tostdOut == FALSE) |
605 | unlink( header.name); /* opposed to listing) (rob@sysgo.de) */ | 605 | unlink(header.name); |
606 | 606 | ||
607 | /* If we got here, we can be certain we have a legitimate | 607 | /* If we got here, we can be certain we have a legitimate |
608 | * header to work with. So work with it. */ | 608 | * header to work with. So work with it. */ |