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:
Bastian Winkler 2015-04-29 20:26:49 +02:00 committed by Justin M. Keyes
parent 83a2a638a9
commit a2cf628603
2 changed files with 3 additions and 3 deletions

View File

@ -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. */

View File

@ -76,7 +76,7 @@ static int included_patches[] = {
710,
//709,
//708,
//707,
707,
706,
//705,
//704,