Disable ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS in bsdcpio p mode.
authorPeter Avalos <pavalos@dragonflybsd.org>
Tue, 17 May 2016 19:58:51 +0000 (12:58 -0700)
committerPeter Avalos <pavalos@dragonflybsd.org>
Tue, 17 May 2016 19:58:51 +0000 (12:58 -0700)
Obtained-from: libarchive 199d5c79b547cebe3d7d33e5acd10ae03008c4a2

contrib/libarchive/cpio/cpio.c

index b267e9b..4b69893 100644 (file)
@@ -295,6 +295,7 @@ main(int argc, char *argv[])
                                    "Cannot use both -p and -%c", cpio->mode);
                        cpio->mode = opt;
                        cpio->extract_flags &= ~ARCHIVE_EXTRACT_SECURE_NODOTDOT;
+                       cpio->extract_flags &= ~ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS;
                        break;
                case OPTION_PASSPHRASE:
                        cpio->passphrase = cpio->argument;