xz/src
Lasse Collin 4014e2479c
xz: O_SEARCH cannot be used for fsync()
Opening a directory with O_SEARCH results in a file descriptor that can
be used with functions like openat(). Such a file descriptor cannot be
used with fsync(). Use O_RDONLY instead.

In musl, O_SEARCH becomes Linux-specific O_PATH. A file descriptor
from O_PATH doesn't allow fsync().

Seems that it's not possible to fsync() a directory that has write
and search permissions but not read permission.

Fixes: 2a9e91d796
2025-01-05 21:43:11 +02:00
..
common tuklib_mbstr_nonprint: Preserve the value of errno 2025-01-05 20:16:09 +02:00
liblzma liblzma: Always validate the first digit of a preset string 2025-01-05 12:58:22 +02:00
lzmainfo lzmainfo: Use tuklib_mbstr_nonprint 2024-12-18 17:09:32 +02:00
scripts Fix typos 2024-05-18 00:34:07 +03:00
xz xz: O_SEARCH cannot be used for fsync() 2025-01-05 21:43:11 +02:00
xzdec xzdec: Don't leave Landlock file descriptor open for no reason 2025-01-04 20:05:03 +02:00
Makefile.am Add my_landlock.h with helper functions to use Linux Landlock 2025-01-02 15:43:38 +02:00