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:
Jan Edmund Lazo
2019-06-08 18:12:28 -04:00
committed by Justin M. Keyes
parent 93afb34712
commit 0b4c53fc23
4 changed files with 10 additions and 2 deletions

View File

@@ -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;
}