mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:7.4.707 #2541
Problem: Undo files can have their executable bit set. Solution: Strip of the executable bit. (Mikael Berthe) https://github.com/vim/vim/commit/v7-4-707
This commit is contained in:

committed by
Justin M. Keyes

parent
83a2a638a9
commit
a2cf628603
@@ -1035,8 +1035,8 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
|
||||
}
|
||||
}
|
||||
|
||||
/* strip any s-bit */
|
||||
perm = perm & 0777;
|
||||
// Strip any sticky and executable bits.
|
||||
perm = perm & 0666;
|
||||
|
||||
/* If the undo file already exists, verify that it actually is an undo
|
||||
* file, and delete it. */
|
||||
|
Reference in New Issue
Block a user