diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-20 20:37:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-20 20:37:01 +0100 |
commit | 35856718881834a76225530d502c68fdec6584cf (patch) | |
tree | 8a067e0923d41111864eff03612e4719851ac51d | |
parent | b9ddda6c2d98d99c09d58145c1b5b4042a8fd92c (diff) | |
download | vim-git-35856718881834a76225530d502c68fdec6584cf.tar.gz |
patch 8.1.0957: Mac: fsync fails on network sharev8.1.0957
Problem: Mac: fsync fails on network share.
Solution: Check for ENOTSUP. (Yee Cheng Chin, closes #4016)
-rw-r--r-- | src/fileio.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 841de1cf0..ab2c3fd01 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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; diff --git a/src/version.c b/src/version.c index b705463e5..5a3a53c38 100644 --- a/src/version.c +++ b/src/version.c @@ -780,6 +780,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 957, +/**/ 956, /**/ 955, |