mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +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 */
|
// Strip any sticky and executable bits.
|
||||||
perm = perm & 0777;
|
perm = perm & 0666;
|
||||||
|
|
||||||
/* If the undo file already exists, verify that it actually is an undo
|
/* If the undo file already exists, verify that it actually is an undo
|
||||||
* file, and delete it. */
|
* file, and delete it. */
|
||||||
|
@@ -76,7 +76,7 @@ static int included_patches[] = {
|
|||||||
710,
|
710,
|
||||||
//709,
|
//709,
|
||||||
//708,
|
//708,
|
||||||
//707,
|
707,
|
||||||
706,
|
706,
|
||||||
//705,
|
//705,
|
||||||
//704,
|
//704,
|
||||||
|
Reference in New Issue
Block a user