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 /include | |
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 'include')
-rw-r--r-- | include/bb_archive.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 58e4c21bb..892c8a472 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
@@ -213,18 +213,11 @@ void seek_by_jump(int fd, off_t amount) FAST_FUNC; | |||
213 | void seek_by_read(int fd, off_t amount) FAST_FUNC; | 213 | void seek_by_read(int fd, off_t amount) FAST_FUNC; |
214 | 214 | ||
215 | const char *strip_unsafe_prefix(const char *str) FAST_FUNC; | 215 | const char *strip_unsafe_prefix(const char *str) FAST_FUNC; |
216 | #if ENABLE_PLATFORM_MINGW32 | ||
217 | #define create_or_remember_link(lp, t, ln, hl) create_or_remember_link(t, ln) | ||
218 | #endif | ||
219 | void create_or_remember_link(llist_t **link_placeholders, | 216 | void create_or_remember_link(llist_t **link_placeholders, |
220 | const char *target, | 217 | const char *target, |
221 | const char *linkname, | 218 | const char *linkname, |
222 | int hard_link) FAST_FUNC; | 219 | int hard_link) FAST_FUNC; |
223 | #if !ENABLE_PLATFORM_MINGW32 | ||
224 | void create_links_from_list(llist_t *list) FAST_FUNC; | 220 | void create_links_from_list(llist_t *list) FAST_FUNC; |
225 | #else | ||
226 | #define create_links_from_list(l) (void)0 | ||
227 | #endif | ||
228 | 221 | ||
229 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; | 222 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; |
230 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; | 223 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; |