diff options
author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-08-20 16:39:18 +0000 |
---|---|---|
committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-08-20 16:39:18 +0000 |
commit | 630d7662c3d7160a032359b4b7c7b9adbf147e07 (patch) | |
tree | fa163e22701288c3a471da8a4a1f3fea46aae5e9 /usr.bin | |
parent | 1ec675a25a6f0167fd9a966e14e4279c8d5287f6 (diff) | |
download | src-630d7662c3d7160a032359b4b7c7b9adbf147e07.tar.gz src-630d7662c3d7160a032359b4b7c7b9adbf147e07.zip |
cpio should restore file flags and ACLs when they're available
Notes
Notes:
svn path=/head/; revision=181929
Diffstat (limited to 'usr.bin')
-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 d79003f52298..8a23ae9208fd 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; |