commit | 7567d0b115e332f61a9f390aaccdf7825b891227 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Nov 16 23:04:15 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Nov 16 23:04:15 2017 +0100 |
tree | e4ab87bf66391ca7243d819c768dc907cdd411da | |
parent | d0480097177369a6ed91d47aba189ae647afcd68 [diff] [blame] |
patch 8.0.1305: writefile() never calls fsync() Problem: Writefile() never calls fsync(). Solution: Follow the 'fsync' option with override to enable or disable.
diff --git a/src/fileio.c b/src/fileio.c index fbc164a..e76e3d1 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -4771,7 +4771,7 @@ */ if (p_fs && fsync(fd) != 0 && !device) { - errmsg = (char_u *)_("E667: Fsync failed"); + errmsg = (char_u *)_(e_fsync); end = 0; } #endif