diff options
author | Ron Yorston <rmy@pobox.com> | 2019-02-14 11:25:52 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-02-14 11:25:52 +0000 |
commit | 6312c005522de47dcaf442f613065415bcbd8ef7 (patch) | |
tree | 6938d11a29007a651191a954842211481c18befb /archival/libarchive | |
parent | 9aae70405e22a97abd610052378eaad3dee281a3 (diff) | |
download | busybox-w32-6312c005522de47dcaf442f613065415bcbd8ef7.tar.gz busybox-w32-6312c005522de47dcaf442f613065415bcbd8ef7.tar.bz2 busybox-w32-6312c005522de47dcaf442f613065415bcbd8ef7.zip |
libarchive: remove more symlink code
Since symlinks aren't supported in busybox-w32 remove more of the
code that handles them.
Saves 64 bytes.
Diffstat (limited to 'archival/libarchive')
-rw-r--r-- | archival/libarchive/unsafe_symlink_target.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/archival/libarchive/unsafe_symlink_target.c b/archival/libarchive/unsafe_symlink_target.c index f53881f2f..ff96991f5 100644 --- a/archival/libarchive/unsafe_symlink_target.c +++ b/archival/libarchive/unsafe_symlink_target.c | |||
@@ -5,11 +5,10 @@ | |||
5 | #include "libbb.h" | 5 | #include "libbb.h" |
6 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
7 | 7 | ||
8 | void FAST_FUNC create_or_remember_link(llist_t **link_placeholders | 8 | void FAST_FUNC create_or_remember_link(llist_t **link_placeholders, |
9 | IF_PLATFORM_MINGW32(UNUSED_PARAM), | ||
10 | const char *target, | 9 | const char *target, |
11 | const char *linkname, | 10 | const char *linkname, |
12 | int hard_link IF_PLATFORM_MINGW32(UNUSED_PARAM)) | 11 | int hard_link) |
13 | { | 12 | { |
14 | #if !ENABLE_PLATFORM_MINGW32 | 13 | #if !ENABLE_PLATFORM_MINGW32 |
15 | if (hard_link || target[0] == '/' || strstr(target, "..")) { | 14 | if (hard_link || target[0] == '/' || strstr(target, "..")) { |