diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-07-30 03:35:45 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-07-30 03:35:45 +0000 |
| commit | 979b646f3021f954d0c7b6050da5e2857ed2a3de (patch) | |
| tree | 5d17ea0923ea9ff1b8e03fa360eb8506ef5c3725 /usr.bin | |
| parent | 76c683bef7ff688c96546b12a838dbc460cd0e10 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -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 991e8717bf87..d79003f52298 100644 --- a/usr.bin/cpio/cpio.c +++ b/usr.bin/cpio/cpio.c @@ -111,6 +111,7 @@ main(int argc, char *argv[]) cpio->extract_flags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER; cpio->extract_flags |= ARCHIVE_EXTRACT_SECURE_SYMLINKS; cpio->extract_flags |= ARCHIVE_EXTRACT_SECURE_NODOTDOT; + cpio->extract_flags |= ARCHIVE_EXTRACT_PERM; if (geteuid() == 0) cpio->extract_flags |= ARCHIVE_EXTRACT_OWNER; cpio->bytes_per_block = 512; |
