summaryrefslogtreecommitdiff
path: root/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2017-02-15 20:43:54 +0100
committerMartin Matuska <martin@matuska.org>2017-02-15 20:43:54 +0100
commitf266cc3d09506299e26f5e5b01d1d0d1b4c2684b (patch)
tree7580f0eecc1542409456a2201fe03047b823e8f7 /libarchive/archive_entry.h
parent7e50bc54678d76345c34b8f241569c2e4f3786b8 (diff)
downloadlibarchive-f266cc3d09506299e26f5e5b01d1d0d1b4c2684b.tar.gz
New archive_acl_to_text() style flag: ARCHIVE_ENTRY_ACL_STYLE_COMPACT
- outputs NFSv4 permission and flags fields without minus characters Use new compact format as default for the SCHILY.acl.ace pax header
Diffstat (limited to 'libarchive/archive_entry.h')
-rw-r--r--libarchive/archive_entry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h
index 9f1955bd..ca77b378 100644
--- a/libarchive/archive_entry.h
+++ b/libarchive/archive_entry.h
@@ -509,6 +509,10 @@ __LA_DECL int archive_entry_acl_next_w(struct archive_entry *, int /* want_type
* ARCHIVE_ENTRY_ACL_STYLE_SOLARIS - Output only one colon after "other" and
* "mask" entries.
*
+ * Flags only for archive entries with NFSv4 ACL:
+ * ARCHIVE_ENTRY_ACL_STYLE_COMPACT - Do not output the minus character for
+ * unset permissions and flags in NFSv4 ACL permission and flag fields
+ *
* Flags for for archive entries with POSIX.1e ACL or NFSv4 ACL:
* ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID - Include extra numeric ID field in
* each ACL entry.
@@ -519,6 +523,7 @@ __LA_DECL int archive_entry_acl_next_w(struct archive_entry *, int /* want_type
#define ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT 0x00000002
#define ARCHIVE_ENTRY_ACL_STYLE_SOLARIS 0x00000004
#define ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA 0x00000008
+#define ARCHIVE_ENTRY_ACL_STYLE_COMPACT 0x00000010
__LA_DECL wchar_t *archive_entry_acl_to_text_w(struct archive_entry *,
ssize_t * /* len */, int /* flags */);