diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-16 17:03:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-16 17:03:45 +0100 |
commit | cd142e3369db8888163a511dbe9907bcd138829c (patch) | |
tree | da7a202c6d0d9c3074d285e229133855e7d8c298 /src/config.h.in | |
parent | a42ad57e481d6ed9c34c80c99bd0512d4660515b (diff) | |
download | vim-git-cd142e3369db8888163a511dbe9907bcd138829c.tar.gz |
patch 8.0.1300: file permissions may end up wrong when writingv8.0.1300
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.
Diffstat (limited to 'src/config.h.in')
-rw-r--r-- | src/config.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.h.in b/src/config.h.in index ec9fc5920..7d6122058 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 |