Distinguish between the end of ACL data and an error in pulling

ACL data from the archive entry.  This doesn't impact
archive_read_extract or archive_write_disk since they only
check for != ARCHIVE_OK when calling this function.  (Though
they should be more careful.)
This commit is contained in:
Tim Kientzle 2007-03-08 06:07:07 +00:00
parent 254cbd1764
commit 19dd89364c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167324

View File

@ -1032,7 +1032,7 @@ archive_entry_acl_next(struct archive_entry *entry, int want_type, int *type,
entry->acl_p = entry->acl_p->next;
if (entry->acl_p == NULL) {
entry->acl_state = 0;
return (ARCHIVE_WARN);
return (ARCHIVE_EOF); /* End of ACL entries. */
}
*type = entry->acl_p->type;
*permset = entry->acl_p->permset;