diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-08-26 15:07:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-26 07:07:29 +0000 |
| commit | 0f0e89fd90311c2d67c971d433f4c2633c8a50b8 (patch) | |
| tree | 7ee8619c9aeb7980f44f2eee0309162538039d9a /runtime/syntax/python.vim | |
| parent | f97bcbdf7794e7fbc91f2c4dcd848b2609a5166a (diff) | |
| download | rneovim-0f0e89fd90311c2d67c971d433f4c2633c8a50b8.tar.gz rneovim-0f0e89fd90311c2d67c971d433f4c2633c8a50b8.tar.bz2 rneovim-0f0e89fd90311c2d67c971d433f4c2633c8a50b8.zip | |
vim-patch:9.2.1005: backupcopy=auto overwrites a file in place with umask (#41502)
Problem: backupcopy=auto overwrites a file in place when umask is restrictive.
The probe treats permission restore as impossible and writes in
place, keeping the same inode.
Solution: When creating the probe file, open() applies umask, so a 0644
file becomes 0600 with umask 0077. Use fchmod() to fix the
permissions of the probe (Pranav Dwivedi).
closes: vim/vim#21137
https://github.com/vim/vim/commit/fd8aea135d146915e921699cd23887b654182810
Co-authored-by: Pranav Dwivedi <dwivedipranav2021@gmail.com>
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions