diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-06-24 15:18:40 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-06-24 15:18:40 +0000 |
commit | fae39e85428b8718f23a31a1191ad78d44674f36 (patch) | |
tree | 285e7a4c0d76a4a7e116d3002272bdb537d0252e /usr.bin/cpio/cpio.c | |
parent | afeaa2fd28e4e54ef4c528193706bd6c4d462788 (diff) | |
download | FreeBSD-src-fae39e85428b8718f23a31a1191ad78d44674f36.zip FreeBSD-src-fae39e85428b8718f23a31a1191ad78d44674f36.tar.gz |
In -p mode, don't gaurd against '..' in paths. We continue to
check in -i mode unless --insecure is specified.
PR: bin/124924
Diffstat (limited to 'usr.bin/cpio/cpio.c')
-rw-r--r-- | usr.bin/cpio/cpio.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |