I have checked the problem originally reported at [1] and at least on Fedora-19 libarchive it is really broken. This is worth to fix in Fedora. $ touch FILENAME $ mkdir extract $ setfacl -m root:rwx TESTFILE $ getfacl TESTFILE # file: TESTFILE # owner: praiskup # group: praiskup user::rw- user:root:rwx group::rw- mask::rwx other::r-- $ bsdtar -cpf test.tar TESTFILE&& bsdtar -xpf test.tar -C extract $ getfacl extract/TESTFILE # file: extract/TESTFILE # owner: praiskup # group: praiskup user::rw- group::rwx other::r-- Pavel [1] http://code.google.com/p/libarchive/issues/detail?id=329
The first thing I found out is that ACL_TYPE_NFS4 is not defined in my system (in my sys/acl.h). This causes that functions translate_acl() in archive_read_disk_entry_from_file.c:440 and archive_write_disk_set_acls() in archive_write_disk_acl.c:69 are suppressed by #if defined() directive and thus saving and restoring ACLs is not performed. I am using Fedora 19 3.10.4-300.fc19.x86_64.
libarchive-3.1.2-7.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/libarchive-3.1.2-7.fc19
Package libarchive-3.1.2-7.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libarchive-3.1.2-7.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-14465/libarchive-3.1.2-7.fc19 then log in and leave karma (feedback).
libarchive-3.1.2-7.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.