summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar/write.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2005-04-17 19:43:37 +0000
committerkientzle <kientzle@FreeBSD.org>2005-04-17 19:43:37 +0000
commitf666e865e6fb2def3ea20a0a4d61e8e65861d008 (patch)
tree6dd7f225fc40362cf802cc89d96f0aaa620a1a2b /usr.bin/tar/write.c
parent637643a433b6f0f26e55f6a501217207abc9f837 (diff)
downloadFreeBSD-src-f666e865e6fb2def3ea20a0a4d61e8e65861d008.zip
FreeBSD-src-f666e865e6fb2def3ea20a0a4d61e8e65861d008.tar.gz
A number of fixes to the autoconf-generated build system. In
particular, acl support is no longer enabled on FreeBSD 4, acl support should be correctly enabled on Linux, dirent.d_namlen should be correctly detected on platforms that support it. Thanks to: Greg Lewis, Juergen Lock, and Jaakko Heinonen
Diffstat (limited to 'usr.bin/tar/write.c')
-rw-r--r--usr.bin/tar/write.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index 9d430aa..dfcbcba 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -1103,11 +1103,15 @@ setup_acl(struct bsdtar *bsdtar, struct archive_entry *entry,
acl_get_permset(acl_entry, &acl_permset);
ae_perm = 0;
- if (acl_get_perm_np(acl_permset, ACL_EXECUTE))
+ /*
+ * acl_get_perm() is spelled differently on different
+ * platforms; see bsdtar_platform.h for details.
+ */
+ if (ACL_GET_PERM(acl_permset, ACL_EXECUTE))
ae_perm |= ARCHIVE_ENTRY_ACL_EXECUTE;
- if (acl_get_perm_np(acl_permset, ACL_READ))
+ if (ACL_GET_PERM(acl_permset, ACL_READ))
ae_perm |= ARCHIVE_ENTRY_ACL_READ;
- if (acl_get_perm_np(acl_permset, ACL_WRITE))
+ if (ACL_GET_PERM(acl_permset, ACL_WRITE))
ae_perm |= ARCHIVE_ENTRY_ACL_WRITE;
archive_entry_acl_add_entry(entry,
OpenPOWER on IntegriCloud