eval,fileio: Omit additional fsync() call

Fixes #6420
This commit is contained in:
ZyX
2017-04-01 21:13:21 +03:00
parent 8de53157b6
commit cc4523013f
3 changed files with 43 additions and 9 deletions

View File

@@ -17289,7 +17289,7 @@ static bool write_list(FileDescriptor *const fp, const list_T *const list,
}
}
}
if ((error = file_fsync(fp)) != 0) {
if ((error = file_flush(fp)) != 0) {
goto write_list_error;
}
return true;