summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-16 23:04:15 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-16 23:04:15 +0100
commit7567d0b115e332f61a9f390aaccdf7825b891227 (patch)
treee4ab87bf66391ca7243d819c768dc907cdd411da /src/fileio.c
parentd0480097177369a6ed91d47aba189ae647afcd68 (diff)
patch 8.0.1305: writefile() never calls fsync()v8.0.1305
Problem: Writefile() never calls fsync(). Solution: Follow the 'fsync' option with override to enable or disable.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index fbc164a914..e76e3d19aa 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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