1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

In -p mode, don't gaurd against '..' in paths. We continue to

check in -i mode unless --insecure is specified.

PR: bin/124924
This commit is contained in:
Tim Kientzle 2008-06-24 15:18:40 +00:00
parent cf77b84879
commit e6c78aec4f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179972

View File

@ -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;