mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
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. */
|
||||
|
@ -76,7 +76,7 @@ static int included_patches[] = {
|
||||
710,
|
||||
//709,
|
||||
//708,
|
||||
//707,
|
||||
707,
|
||||
706,
|
||||
//705,
|
||||
//704,
|
||||
|
Loading…
Reference in New Issue
Block a user