* lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
read-only.
2012-02-04 Bruno Haible <bruno@clisp.org>
+ fsync: Avoid test failure on native Windows.
+ * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
+ read-only.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
sys_select: Avoid syntax error on OpenBSD 5.0.
* lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
currently being included, just include the system's <sys/select.h>.
err = GetLastError ();
switch (err)
{
+ case ERROR_ACCESS_DENIED:
+ /* For a read-only handle, fsync should succeed, even though we have
+ no way to sync the access-time changes. */
+ return 0;
+
/* eg. Trying to fsync a tty. */
case ERROR_INVALID_HANDLE:
errno = EINVAL;