Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PERFORCE change 176819 for review

0 views
Skip to first unread message

Garrett Cooper

unread,
Apr 11, 2010, 5:25:45 PM4/11/10
to Perforce Change Reviews
http://p4web.freebsd.org/@@176819?ac=10

Change 176819 by gcooper@gcooper-bayonetta on 2010/04/11 21:24:55

tar -p also preserves ACLS, fflags, and xattrs; add the appropriate options to the archive(3) call.

Affected files ...

.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/usr.sbin/pkg_install/lib/file.c#8 edit

Differences ...

==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/usr.sbin/pkg_install/lib/file.c#8 (text+ko) ====

@@ -337,7 +337,9 @@
}
}

-#define EXTRACT_ARCHIVE_FLAGS (ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_TIME)
+#define EXTRACT_ARCHIVE_FLAGS (ARCHIVE_EXTRACT_OWNER |ARCHIVE_EXTRACT_PERM| \
+ ARCHIVE_EXTRACT_TIME |ARCHIVE_EXTRACT_ACL | \
+ ARCHIVE_EXTRACT_FFLAGS|ARCHIVE_EXTRACT_XATTR)

/* Unpack a tar file */
int

0 new messages