diff options
| author | Harald van Dijk <harald@gigawatt.nl> | 2018-05-22 17:34:31 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-05-22 17:34:31 +0200 |
| commit | 8c24af9dcfe0d89a660c39838eec4d20bc13efbf (patch) | |
| tree | 1be6f930fb21383ba8c46a6d0491cafe3e26d687 /include | |
| parent | a40a661d971cf75c617c83357ac0e87a45f41f4f (diff) | |
| download | busybox-w32-8c24af9dcfe0d89a660c39838eec4d20bc13efbf.tar.gz busybox-w32-8c24af9dcfe0d89a660c39838eec4d20bc13efbf.tar.bz2 busybox-w32-8c24af9dcfe0d89a660c39838eec4d20bc13efbf.zip | |
tar: fix interaction of delayed symlink and hardlink creation
function old new delta
create_or_remember_link - 106 +106
create_links_from_list - 93 +93
find_applet_by_name 124 128 +4
unzip_main 2724 2726 +2
data_extract_all 891 873 -18
create_symlinks_from_list 64 - -64
create_or_remember_symlink 94 - -94
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 2/1 up/down: 205/-176) Total: 29 bytes
Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/bb_archive.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 0252488bf..2ee30f794 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
| @@ -64,8 +64,8 @@ typedef struct archive_handle_t { | |||
| 64 | /* Currently processed file's header */ | 64 | /* Currently processed file's header */ |
| 65 | file_header_t *file_header; | 65 | file_header_t *file_header; |
| 66 | 66 | ||
| 67 | /* List of symlink placeholders */ | 67 | /* List of link placeholders */ |
| 68 | llist_t *symlink_placeholders; | 68 | llist_t *link_placeholders; |
| 69 | 69 | ||
| 70 | /* Process the header component, e.g. tar -t */ | 70 | /* Process the header component, e.g. tar -t */ |
| 71 | void FAST_FUNC (*action_header)(const file_header_t *); | 71 | void FAST_FUNC (*action_header)(const file_header_t *); |
| @@ -203,10 +203,11 @@ void seek_by_jump(int fd, off_t amount) FAST_FUNC; | |||
| 203 | void seek_by_read(int fd, off_t amount) FAST_FUNC; | 203 | void seek_by_read(int fd, off_t amount) FAST_FUNC; |
| 204 | 204 | ||
| 205 | const char *strip_unsafe_prefix(const char *str) FAST_FUNC; | 205 | const char *strip_unsafe_prefix(const char *str) FAST_FUNC; |
| 206 | void create_or_remember_symlink(llist_t **symlink_placeholders, | 206 | void create_or_remember_link(llist_t **link_placeholders, |
| 207 | const char *target, | 207 | const char *target, |
| 208 | const char *linkname) FAST_FUNC; | 208 | const char *linkname, |
| 209 | void create_symlinks_from_list(llist_t *list) FAST_FUNC; | 209 | int hard_link) FAST_FUNC; |
| 210 | void create_links_from_list(llist_t *list) FAST_FUNC; | ||
| 210 | 211 | ||
| 211 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; | 212 | void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; |
| 212 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; | 213 | const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; |
