diff options
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c index aa03ba990..85551684b 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -549,6 +549,7 @@ static int FAST_FUNC writeFileToTarball(const char *fileName, struct stat *statb | |||
549 | } | 549 | } |
550 | } | 550 | } |
551 | 551 | ||
552 | #if !ENABLE_PLATFORM_MINGW32 | ||
552 | /* It is a bad idea to store the archive we are in the process of creating, | 553 | /* It is a bad idea to store the archive we are in the process of creating, |
553 | * so check the device and inode to be sure that this particular file isn't | 554 | * so check the device and inode to be sure that this particular file isn't |
554 | * the new tarball */ | 555 | * the new tarball */ |
@@ -558,6 +559,7 @@ static int FAST_FUNC writeFileToTarball(const char *fileName, struct stat *statb | |||
558 | bb_error_msg("%s: file is the archive; skipping", fileName); | 559 | bb_error_msg("%s: file is the archive; skipping", fileName); |
559 | return TRUE; | 560 | return TRUE; |
560 | } | 561 | } |
562 | #endif | ||
561 | 563 | ||
562 | if (exclude_file(tbInfo->excludeList, header_name)) | 564 | if (exclude_file(tbInfo->excludeList, header_name)) |
563 | return SKIP; | 565 | return SKIP; |