aboutsummaryrefslogtreecommitdiff
path: root/archival/libarchive
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-02-14 11:25:52 +0000
committerRon Yorston <rmy@pobox.com>2019-02-14 11:25:52 +0000
commit6312c005522de47dcaf442f613065415bcbd8ef7 (patch)
tree6938d11a29007a651191a954842211481c18befb /archival/libarchive
parent9aae70405e22a97abd610052378eaad3dee281a3 (diff)
downloadbusybox-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.c5
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
8void FAST_FUNC create_or_remember_link(llist_t **link_placeholders 8void 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, "..")) {