diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-08-20 16:39:18 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-08-20 16:39:18 +0000 |
commit | a37514cff965526770ed9ab02283e92313cb47ab (patch) | |
tree | fa163e22701288c3a471da8a4a1f3fea46aae5e9 | |
parent | ebd94f5c0d1031106d2661202c511498a919f4a9 (diff) | |
download | FreeBSD-src-a37514cff965526770ed9ab02283e92313cb47ab.zip FreeBSD-src-a37514cff965526770ed9ab02283e92313cb47ab.tar.gz |
cpio should restore file flags and ACLs when they're available
-rw-r--r-- | usr.bin/cpio/cpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/cpio/cpio.c b/usr.bin/cpio/cpio.c index d79003f..8a23ae9 100644 --- a/usr.bin/cpio/cpio.c +++ b/usr.bin/cpio/cpio.c @@ -112,6 +112,8 @@ main(int argc, char *argv[]) cpio->extract_flags |= ARCHIVE_EXTRACT_SECURE_SYMLINKS; cpio->extract_flags |= ARCHIVE_EXTRACT_SECURE_NODOTDOT; cpio->extract_flags |= ARCHIVE_EXTRACT_PERM; + cpio->extract_flags |= ARCHIVE_EXTRACT_FFLAGS; + cpio->extract_flags |= ARCHIVE_EXTRACT_ACL; if (geteuid() == 0) cpio->extract_flags |= ARCHIVE_EXTRACT_OWNER; cpio->bytes_per_block = 512; |