← Commit list

d9503224c

Natanael Copa
Natanael Copa
2018-03-30
SUCCESS Duration: 143s

Subject

cpio: extract "unsafe" symlinks the same way tar/unzip does

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/cpio.c+2 -0
@@ -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)
) {