mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:8.0.1305: writefile() never calls fsync() #10153
Problem: Writefile() never calls fsync().
Solution: Follow the 'fsync' option with override to enable or disable.
7567d0b115
This commit is contained in:

committed by
Justin M. Keyes

parent
93afb34712
commit
0b4c53fc23
@@ -3363,7 +3363,7 @@ restore_backup:
|
||||
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);
|
||||
SET_ERRMSG_ARG(e_fsync, error);
|
||||
end = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user