]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix handling of symbolic link ACLs
authorMartin Matuska <martin@matuska.org>
Sat, 21 Aug 2021 18:51:07 +0000 (20:51 +0200)
committerMartin Matuska <martin@matuska.org>
Sun, 22 Aug 2021 01:50:30 +0000 (03:50 +0200)
commitfba4f123cc456d2b2538f811bb831483bf336bad
treee150a1eb5d577ec8942b3fed4fbc456ab5e150e9
parent13023595c9623374cd386c6dd419241fb5082b41
Fix handling of symbolic link ACLs

On Linux ACLs on symbolic links are not supported.
We must avoid calling acl_set_file() on symbolic links as their
targets are modified instead.

While here, do not try to set default ACLs on non-directories.

Fixes #1565
libarchive/archive_disk_acl_freebsd.c
libarchive/archive_disk_acl_linux.c
libarchive/archive_disk_acl_sunos.c