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:
parent
61b114e92f
commit
eaa150df98
@ -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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user