From cd142e3369db8888163a511dbe9907bcd138829c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 16 Nov 2017 17:03:45 +0100 Subject: 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. --- src/config.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config.h.in') diff --git a/src/config.h.in b/src/config.h.in index ec9fc59202..7d6122058f 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -156,9 +156,11 @@ /* Define if you the function: */ #undef HAVE_FCHDIR #undef HAVE_FCHOWN +#undef HAVE_FCHMOD +#undef HAVE_FLOAT_FUNCS #undef HAVE_FSEEKO #undef HAVE_FSYNC -#undef HAVE_FLOAT_FUNCS +#undef HAVE_FTRUNCATE #undef HAVE_GETCWD #undef HAVE_GETPGID #undef HAVE_GETPSEUDOTTY -- cgit v1.2.3