mirror of
https://github.com/vim/vim.git
synced 2026-02-15 11:53:58 +01:00
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.