bug#75405: gzip --synchronous doesn't work with musl

2025-01-06 Thread Paul Eggert
On 2025-01-06 05:29, Lasse Collin wrote: In musl, O_SEARCH maps to Linux-specific O_PATH That is a bug in musl. musl should not define O_SEARCH to O_PATH on Linux, because O_PATH is not a valid implementation of O_SEARCH. Or if musl wants to do some sort of approximate-but-invalid implementa

bug#75405: gzip --synchronous doesn't work with musl

2025-01-06 Thread Lasse Collin
On Linux/musl: $ echo foo > foo $ gzip --synchronous foo gzip: foo.gz: Bad file descriptor From gzip.c: dfd = open (dfname, O_SEARCH | O_DIRECTORY); ... if ((synchronous && ((0 <= dfd && fdatasync (dfd) != 0 && errno != EINVAL) || (fsync