diff --git a/radicale/pathutils.py b/radicale/pathutils.py index 56e6fa08..448817ea 100644 --- a/radicale/pathutils.py +++ b/radicale/pathutils.py @@ -193,7 +193,7 @@ def rename_exchange(src: str, dst: str) -> None: def fsync(fd: int) -> None: - if sys.platform != "win32" and hasattr(fcntl, "F_FULLFSYNC"): + if sys.platform == "darwin": fcntl.fcntl(fd, fcntl.F_FULLFSYNC) else: os.fsync(fd)