diff options
author | Martin Matuska <martin@matuska.org> | 2017-03-23 15:27:59 +0100 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2017-03-23 15:34:25 +0100 |
commit | 365a91def0c9c173b93643698d6ee4e8e0fc2746 (patch) | |
tree | 07d2501b3c9d6df8988c88ffab3c24b9521d97d2 /build/cmake | |
parent | 3627d67e773badf49b746e5e1d2fefdfe08b66b9 (diff) | |
download | libarchive-365a91def0c9c173b93643698d6ee4e8e0fc2746.tar.gz |
Improve extended attribute support
Mac OS X changes:
- add support for extended file attributes via sys/xattr.h
- when extracting an archive entry that has mac_metadata and
mac_metadata is requested to be extracted, extended attributes
are restored only from mac_metadata.
- by default, extended attributes are stored both in mac_metadata and
SCHILY.xattr/LIBARCHIVE.xattr. This is subject to review and change.
To match behavior on other platforms, store extended attributes on
FreeBSD with extattr_set_link() if no fd is provided.
Detection of extended attributes support in configure stage has been
rewritten.
Added xattr platform test to libarchive and xattrs option test to bsdtar.
Diffstat (limited to 'build/cmake')
-rw-r--r-- | build/cmake/config.h.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index cfd2a5c0..e646213d 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -302,6 +302,18 @@ typedef uint64_t uintmax_t; /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ #cmakedefine ARCHIVE_CRYPTO_SHA512_WIN 1 +/* AIX xattr support */ +#cmakedefine ARCHIVE_XATTR_AIX 1 + +/* Darwin xattr support */ +#cmakedefine ARCHIVE_XATTR_DARWIN 1 + +/* FreeBSD xattr support */ +#cmakedefine ARCHIVE_XATTR_FREEBSD 1 + +/* Linux xattr support */ +#cmakedefine ARCHIVE_XATTR_LINUX 1 + /* Version number of bsdcpio */ #cmakedefine BSDCPIO_VERSION_STRING "${BSDCPIO_VERSION_STRING}" @@ -463,6 +475,10 @@ typedef uint64_t uintmax_t; don't. */ #cmakedefine HAVE_DECL_UINTMAX_MAX 1 +/* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if + you don't. */ +#cmakedefine HAVE_DECL_XATTR_NOFOLLOW 1 + /* Define to 1 if you have the <direct.h> header file. */ #cmakedefine HAVE_DIRECT_H 1 |