mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1305: writefile() never calls fsync()
Problem: Writefile() never calls fsync(). Solution: Follow the 'fsync' option with override to enable or disable.
This commit is contained in:
@@ -4771,7 +4771,7 @@ restore_backup:
|
||||
*/
|
||||
if (p_fs && fsync(fd) != 0 && !device)
|
||||
{
|
||||
errmsg = (char_u *)_("E667: Fsync failed");
|
||||
errmsg = (char_u *)_(e_fsync);
|
||||
end = 0;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user