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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* strip any s-bit */
|
/* strip any s-bit and executable bit */
|
||||||
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. */
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
707,
|
||||||
/**/
|
/**/
|
||||||
706,
|
706,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user