]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Perform xattrs before mode on Darwin.
authorEric Borisch <eborisch@gmail.com>
Fri, 1 Jun 2018 03:45:34 +0000 (22:45 -0500)
committerEric Borisch <eborisch@gmail.com>
Fri, 1 Jun 2018 03:45:34 +0000 (22:45 -0500)
commitad58bd612e45812f106580cb102b2cc034016367
tree37fa2fb18e35acc4b43134e77efa6adf24922ba7
parent38c806ec51e2e23e2db65c354e63df258ffcd0bf
Perform xattrs before mode on Darwin.

Setting the mode on Darwin does not clear xattrs, but xattrs cannot be
set by a non-root user if the mode is not writable. Perform xattrs first
and then mode in _archive_write_disk_finish_entry() on Datwin. Darwin
ACLs are handled later.

Prior change handled --hfsCompression - specific xattrs, this catches
any other (encoded in the archive) attributes.
libarchive/archive_write_disk_posix.c