]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_write_disk_posix: fix writing fflags broken in 8a1bd5c
authorMartin Matuska <martin@matuska.org>
Wed, 17 Nov 2021 20:06:00 +0000 (21:06 +0100)
committerMartin Matuska <martin@matuska.org>
Wed, 17 Nov 2021 20:20:09 +0000 (21:20 +0100)
commitede459d2ebb879f5eedb6f7abea203be0b334230
treea2f6c90d59f3c0ba9bda9f25da5d7cdc5f6c7249
parentf7afd7a9c34d5b5efc58fb7fd3eaaedbb55bedff
archive_write_disk_posix: fix writing fflags broken in 8a1bd5c

The fixup list was erroneously assumed to be directories only.
Only in the case of critical file flags modification (e.g. SF_IMMUTABLE
on BSD systems), other file types (e.g. regular files or symbolic links)
may be added to the fixup list. We still need to verify that we are writing
to the correct file type, so compare the archive entry file type with
the file type of the file to be modified.

Fixes #1617
libarchive/archive_write_disk_posix.c