diff options
author | Ron Yorston <rmy@pobox.com> | 2021-01-19 11:47:11 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-01-19 11:47:11 +0000 |
commit | df81ab878f0b8124f3ead12d8299abec6ce5fac3 (patch) | |
tree | 72ec1a8bcb405cf48099b9d2d9a71f7fc6090d49 /archival/unzip.c | |
parent | 12e14ebba6b6fe111829cac357b48154e769d778 (diff) | |
download | busybox-w32-df81ab878f0b8124f3ead12d8299abec6ce5fac3.tar.gz busybox-w32-df81ab878f0b8124f3ead12d8299abec6ce5fac3.tar.bz2 busybox-w32-df81ab878f0b8124f3ead12d8299abec6ce5fac3.zip |
libarchive: allow extraction of hard links
Allow create_or_remember_link() to create hardlinks.
As a result tar and cpio can now extract hard links. Since unzip
only supports symlinks it sees no improvement. As before, attempts
to extract symlinks result in a warning.
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index 67593d4ed..19353c708 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -348,9 +348,6 @@ static void unzip_create_leading_dirs(const char *fn) | |||
348 | } | 348 | } |
349 | 349 | ||
350 | #if ENABLE_FEATURE_UNZIP_CDF | 350 | #if ENABLE_FEATURE_UNZIP_CDF |
351 | #if ENABLE_PLATFORM_MINGW32 | ||
352 | #define unzip_extract_symlink(s, z, d) unzip_extract_symlink(z, d) | ||
353 | #endif | ||
354 | static void unzip_extract_symlink(llist_t **symlink_placeholders, | 351 | static void unzip_extract_symlink(llist_t **symlink_placeholders, |
355 | zip_header_t *zip, | 352 | zip_header_t *zip, |
356 | const char *dst_fn) | 353 | const char *dst_fn) |
@@ -495,7 +492,7 @@ int unzip_main(int argc, char **argv) | |||
495 | llist_t *zaccept = NULL; | 492 | llist_t *zaccept = NULL; |
496 | llist_t *zreject = NULL; | 493 | llist_t *zreject = NULL; |
497 | char *base_dir = NULL; | 494 | char *base_dir = NULL; |
498 | #if ENABLE_FEATURE_UNZIP_CDF && !ENABLE_PLATFORM_MINGW32 | 495 | #if ENABLE_FEATURE_UNZIP_CDF |
499 | llist_t *symlink_placeholders = NULL; | 496 | llist_t *symlink_placeholders = NULL; |
500 | #endif | 497 | #endif |
501 | int i; | 498 | int i; |