From fae39e85428b8718f23a31a1191ad78d44674f36 Mon Sep 17 00:00:00 2001 From: kientzle Date: Tue, 24 Jun 2008 15:18:40 +0000 Subject: In -p mode, don't gaurd against '..' in paths. We continue to check in -i mode unless --insecure is specified. PR: bin/124924 --- usr.bin/cpio/cpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/cpio/cpio.c b/usr.bin/cpio/cpio.c index e6904a5..79fdf9f 100644 --- a/usr.bin/cpio/cpio.c +++ b/usr.bin/cpio/cpio.c @@ -182,6 +182,7 @@ main(int argc, char *argv[]) break; case 'p': /* POSIX 1997 */ cpio->mode = opt; + cpio->extract_flags &= ~ARCHIVE_EXTRACT_SECURE_NODOTDOT; break; case OPTION_QUIET: /* GNU cpio */ cpio->quiet = 1; -- cgit v1.1