1
0
mirror of https://git.tukaani.org/xz.git synced 2025-10-05 16:58:17 +00:00

xz: Don't fsync() directories on AIX

It fails with EBADF.

Fixes: https://github.com/tukaani-project/xz/issues/188
Closes: https://github.com/tukaani-project/xz/pull/189
This commit is contained in:
Lakshmi-Surekha 2025-07-17 23:27:06 -05:00 committed by Lasse Collin
parent 61b114e92f
commit eaa150df98
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -493,7 +493,8 @@ io_sync_dest(file_pair *pair)
return true;
}
#ifndef TUKLIB_DOSLIKE
#if !defined(TUKLIB_DOSLIKE) && !defined(_AIX)
// On AIX, this would fail with EBADF.
if (fsync(pair->dir_fd)) {
message_error(_("%s: Synchronizing the directory of "
"the file failed: %s"),