diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-09 08:30:13 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-09 08:30:13 +0100 |
commit | 5b6f06f5eb8628955262508d153627fe6f2d1c8b (patch) | |
tree | 25ea1776f833936cf4884a99610778c1578b70f5 /include | |
parent | 13fc352af9a47da92ac0198c7a862c722f143508 (diff) | |
download | busybox-w32-5b6f06f5eb8628955262508d153627fe6f2d1c8b.tar.gz busybox-w32-5b6f06f5eb8628955262508d153627fe6f2d1c8b.tar.bz2 busybox-w32-5b6f06f5eb8628955262508d153627fe6f2d1c8b.zip |
libarchive: failure to extract symlink isn't fatal
Recent upstream changes made the failure of symlink(2) when extracting
from an archive a fatal error.
The busybox-w32 implementation of symlink(2) always fails. Just
issue a warning and move on.
Diffstat (limited to 'include')
-rw-r--r-- | include/bb_archive.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 8028736b8..91d5561fc 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
@@ -212,7 +212,11 @@ const char *strip_unsafe_prefix(const char *str) FAST_FUNC; | |||
212 | void create_or_remember_symlink(llist_t **symlink_placeholders, | 212 | void create_or_remember_symlink(llist_t **symlink_placeholders, |
213 | const char *target, | 213 | const char *target, |
214 | const char *linkname) FAST_FUNC; | 214 | const char *linkname) FAST_FUNC; |
215 | #if !ENABLE_PLATFORM_MINGW32 | ||
215 | void create_symlinks_from_list(llist_t *list) FAST_FUNC; | 216 | void create_symlinks_from_list(llist_t *list) FAST_FUNC; |
217 | #else | ||
218 | #define create_symlinks_from_list(l) (void)0 | ||
219 | #endif | ||
216 | 220 | ||
217 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; | 221 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; |
218 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; | 222 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; |