]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Avoid infinite loop when there's unsupported acl type 13/head
authornaota <naota@elisp.net>
Fri, 25 May 2012 04:03:21 +0000 (13:03 +0900)
committernaota <naota@elisp.net>
Fri, 25 May 2012 04:03:21 +0000 (13:03 +0900)
libarchive/archive_read_disk_entry_from_file.c

index 7987fa5b3b0ba698818fb77dfba0a04531b6a35e..25b1edcada3e401fe7cdaf8dfa7e8494ad114cde 100644 (file)
@@ -584,6 +584,7 @@ translate_acl(struct archive_read_disk *a,
                        break;
                default:
                        /* Skip types that libarchive can't support. */
+                       s = acl_get_entry(acl, ACL_NEXT_ENTRY, &acl_entry);
                        continue;
                }