forked from aniani/vim
patch 7.4.707
Problem: Undo files can have their executable bit set. Solution: Strip of the executable bit. (Mikael Berthe)
This commit is contained in:
@@ -1614,8 +1614,8 @@ u_write_undo(name, forceit, buf, hash)
|
||||
#endif
|
||||
}
|
||||
|
||||
/* strip any s-bit */
|
||||
perm = perm & 0777;
|
||||
/* strip any s-bit and executable bit */
|
||||
perm = perm & 0666;
|
||||
|
||||
/* If the undo file already exists, verify that it actually is an undo
|
||||
* file, and delete it. */
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
707,
|
||||
/**/
|
||||
706,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user