diff options
Diffstat (limited to 'archival/libunarchive/data_extract_all.c')
-rw-r--r-- | archival/libunarchive/data_extract_all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c index 4df9c09a7..29a224bbc 100644 --- a/archival/libunarchive/data_extract_all.c +++ b/archival/libunarchive/data_extract_all.c | |||
@@ -20,7 +20,7 @@ void data_extract_all(archive_handle_t *archive_handle) | |||
20 | 20 | ||
21 | /* Check if the file already exists */ | 21 | /* Check if the file already exists */ |
22 | if (archive_handle->flags & ARCHIVE_EXTRACT_UNCONDITIONAL) { | 22 | if (archive_handle->flags & ARCHIVE_EXTRACT_UNCONDITIONAL) { |
23 | /* Remove the existing entry if it exists */ | 23 | /* Remove the entry if it exists */ |
24 | if (((file_header->mode & S_IFMT) != S_IFDIR) | 24 | if (((file_header->mode & S_IFMT) != S_IFDIR) |
25 | && (unlink(file_header->name) == -1) | 25 | && (unlink(file_header->name) == -1) |
26 | && (errno != ENOENT) | 26 | && (errno != ENOENT) |