]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Unbreak build on the platform which supports POSIX ACLs.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 9 Mar 2011 15:35:50 +0000 (10:35 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 9 Mar 2011 15:35:50 +0000 (10:35 -0500)
SVN-Revision: 2998

libarchive/archive_write_disk.c

index 212febcdfecd93e65d66f274f7d63f47199b450f..78feb9ee2c9157ee8b406d689526e5a098c7bacf 100644 (file)
@@ -2682,8 +2682,9 @@ set_acl(struct archive_write_disk *a, int fd, const char *name,
        if (entries == 0)
                return (ARCHIVE_OK);
        acl = acl_init(entries);
-       while (archive_acl_next(abstract_acl, ae_requested_type, &ae_type,
-                  &ae_permset, &ae_tag, &ae_id, &ae_name) == ARCHIVE_OK) {
+       while (archive_acl_next((struct archive *)a, abstract_acl,
+           ae_requested_type, &ae_type, &ae_permset, &ae_tag, &ae_id,
+           &ae_name) == ARCHIVE_OK) {
                acl_create_entry(&acl, &acl_entry);
 
                switch (ae_tag) {