]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Use (euid == 0) as switch for xattr/mode order
authorEric Borisch <eborisch@gmail.com>
Fri, 1 Jun 2018 04:51:38 +0000 (23:51 -0500)
committerEric Borisch <eborisch@gmail.com>
Fri, 1 Jun 2018 04:51:38 +0000 (23:51 -0500)
commit5a796cc6960b935e9162b98b035dfca7d4777dfb
tree2d88b8d0f4fc8deb9d2d7fdb2eb8ad29628fe82e
parentad58bd612e45812f106580cb102b2cc034016367
Use (euid == 0) as switch for xattr/mode order

For non-root users, set xattr first. For root users (who might be
setting security xattrs liable to clear with mode) set mode first.
Certainly needs testing on other platforms, but hits the cases I've
identified so far on Darwin.
libarchive/archive_write_disk_posix.c