diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-21 19:38:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-21 19:38:24 +0100 |
| commit | 0be6d3c86fe583860e0e70cbf46b4e4c5231f891 (patch) | |
| tree | d9c16d4750dc98b8af6109faf3283e254b6a119f /src/nvim/os/fileio.c | |
| parent | 40f5a6c4dafe4bbca227d4c6bda0d9a94d817d71 (diff) | |
| parent | 996916277d9845b61f026c53197880889e5004e2 (diff) | |
| download | rneovim-0be6d3c86fe583860e0e70cbf46b4e4c5231f891.tar.gz rneovim-0be6d3c86fe583860e0e70cbf46b4e4c5231f891.tar.bz2 rneovim-0be6d3c86fe583860e0e70cbf46b4e4c5231f891.zip | |
Merge #9634 'fsync: Ignore ENOTSUP. Fix writing to SMB.'
Diffstat (limited to 'src/nvim/os/fileio.c')
| -rw-r--r-- | src/nvim/os/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c index ccf35fd57c..bb68326a03 100644 --- a/src/nvim/os/fileio.c +++ b/src/nvim/os/fileio.c @@ -229,7 +229,10 @@ int file_fsync(FileDescriptor *const fp) return flush_error; } const int fsync_error = os_fsync(fp->fd); - if (fsync_error != UV_EINVAL && fsync_error != UV_EROFS) { + if (fsync_error != UV_EINVAL + && fsync_error != UV_EROFS + // fsync not supported on this storage. + && fsync_error != UV_ENOTSUP) { return fsync_error; } return 0; |
