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/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/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 6356290b9c..ba3625bf95 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -3405,7 +3405,9 @@ restore_backup: // (could be a pipe). // If the 'fsync' option is FALSE, don't fsync(). Useful for laptops. int error; - if (p_fs && (error = os_fsync(fd)) != 0 && !device) { + if (p_fs && (error = os_fsync(fd)) != 0 && !device + // fsync not supported on this storage. + && error != UV_ENOTSUP) { SET_ERRMSG_ARG(_("E667: Fsync failed: %s"), error); end = 0; } |