From: Lakshmi-Surekha Date: Fri, 18 Jul 2025 04:27:06 +0000 (-0500) Subject: xz: Don't fsync() directories on AIX X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaa150df9803c982adf28d4533c7a4264ea17757;p=thirdparty%2Fxz.git 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 --- diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 8c83269b..6b1a1536 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c @@ -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"),