]> Dogcows Code - chaz/tar/commit
acls: bugfix for default ACLs extraction
authorPavel Raiskup <praiskup@redhat.com>
Mon, 3 Feb 2014 09:32:24 +0000 (10:32 +0100)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 14 Feb 2014 10:38:20 +0000 (12:38 +0200)
commit7fe7adcbb985e78aaf9f78051fa26167779be1f6
tree90ce1858eb4564cf1bffb1c529ff9a23b85689e2
parent8e10d93d01049d4c5c58ebe57da499a3873be9db
acls: bugfix for default ACLs extraction

When --acls option is on (regardless of tarball contents or
tarball format), we should explicitly set OR delete default ACLs
for extracted directories.  Prior to this update, we always
created arbitrary default ACLs based standard file permissions.

* configure.ac (with_posix_acls): Check also for acl_free and
acl_delete_def_file to mark IEEE 1003.1e ACLs as supported.
* src/xattrs.c (acl_delete_def_file_at): New function.
(xattrs__acls_set): Do not treat acls_option at all;  Delete
default ACLs if appropriate.

References:
http://www.mail-archive.com/bug-tar@gnu.org/msg04355.html
Thanks: Juan J. Martínez and Mark Steinborn
configure.ac
src/xattrs.c
This page took 0.018684 seconds and 4 git commands to generate.