mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2025-03-01 08:35:40 +00:00
cpio: extract "unsafe" symlinks the same way tar/unzip does
function old new delta cpio_main 588 596 +8 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
af874cc63e
commit
08cbe510dd
@ -508,6 +508,8 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
|
||||
while (get_header_cpio(archive_handle) == EXIT_SUCCESS)
|
||||
continue;
|
||||
|
||||
create_symlinks_from_list(archive_handle->symlink_placeholders);
|
||||
|
||||
if (archive_handle->cpio__blocks != (off_t)-1
|
||||
&& !(opt & OPT_QUIET)
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user