commit | cd142e3369db8888163a511dbe9907bcd138829c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Nov 16 17:03:45 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Nov 16 17:03:45 2017 +0100 |
tree | da7a202c6d0d9c3074d285e229133855e7d8c298 | |
parent | a42ad57e481d6ed9c34c80c99bd0512d4660515b [diff] [blame] |
patch 8.0.1300: file permissions may end up wrong when writing Problem: File permissions may end up wrong when writing. Solution: Use fchmod() instead of chmod() when possible. Don't truncate until we know we can change the file.
diff --git a/src/version.c b/src/version.c index cafdd62..2a50a1b 100644 --- a/src/version.c +++ b/src/version.c
@@ -767,6 +767,8 @@ static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1300, +/**/ 1299, /**/ 1298,