mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0957: Mac: fsync fails on network share
Problem: Mac: fsync fails on network share. Solution: Check for ENOTSUP. (Yee Cheng Chin, closes #4016)
This commit is contained in:
@@ -5135,7 +5135,7 @@ vim_fsync(int fd)
|
||||
|
||||
# ifdef MACOS_X
|
||||
r = fcntl(fd, F_FULLFSYNC);
|
||||
if (r != 0 && errno == ENOTTY)
|
||||
if (r != 0 && (errno == ENOTTY || errno == ENOTSUP))
|
||||
# endif
|
||||
r = fsync(fd);
|
||||
return r;
|
||||
|
Reference in New Issue
Block a user