]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Never follow symlinks when setting file flags on Linux
authorMartin Matuska <martin@matuska.org>
Sun, 22 Aug 2021 01:53:28 +0000 (03:53 +0200)
committerMartin Matuska <martin@matuska.org>
Sun, 22 Aug 2021 01:59:04 +0000 (03:59 +0200)
commite2ad1a2c3064fa9eba6274b3641c4c1beed25c0b
treec07dab181006b65879998933bd46304691f0577d
parentfba4f123cc456d2b2538f811bb831483bf336bad
Never follow symlinks when setting file flags on Linux

When opening a file descriptor to set file flags on linux, ensure
no symbolic links are followed. This fixes the case when an archive
contains a directory entry followed by a symlink entry with the same
path. The fixup code would modify file flags of the symlink target.
libarchive/archive_write_disk_posix.c