diff options
author | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
commit | ce9af1cc5ea23f754587448cf35b5120c77bfeef (patch) | |
tree | 69e5eaba5e75ab909ed92d5045393471b8ff3c13 /archival/unzip.c | |
parent | c170026700eabb10147dd848c45c06995b43a32e (diff) | |
parent | e837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff) | |
download | busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2 busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index f37ea3519..233487697 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -371,9 +371,15 @@ static void unzip_extract_symlink(zip_header_t *zip, const char *dst_fn) | |||
371 | target[xstate.mem_output_size] = '\0'; | 371 | target[xstate.mem_output_size] = '\0'; |
372 | #endif | 372 | #endif |
373 | } | 373 | } |
374 | if (!unsafe_symlink_target(target)) { | ||
374 | //TODO: libbb candidate | 375 | //TODO: libbb candidate |
375 | if (symlink(target, dst_fn)) | 376 | if (symlink(target, dst_fn)) { |
376 | bb_perror_msg_and_die("can't create symlink '%s'", dst_fn); | 377 | /* shared message */ |
378 | bb_perror_msg_and_die("can't create %slink '%s' to '%s'", | ||
379 | "sym", dst_fn, target | ||
380 | ); | ||
381 | } | ||
382 | } | ||
377 | free(target); | 383 | free(target); |
378 | } | 384 | } |
379 | #endif | 385 | #endif |