patch 8.0.1345: race condition between stat() and open() for viminfo
Problem: Race condition between stat() and open() for the viminfo temp
file. (Simon Ruderich)
Solution: use open() with O_EXCL to atomically check if the file exists.
Don't try using a temp file, renaming it will fail anyway.
diff --git a/src/version.c b/src/version.c
index f94ef27..5b3b797 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1345,
+/**/
1344,
/**/
1343,