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

cpio should restore file flags and ACLs when they're available

This commit is contained in:
Tim Kientzle 2008-08-20 16:39:18 +00:00
parent 1ec675a25a
commit 630d7662c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181929

View File

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