1
0
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:
Bram Moolenaar
2015-04-21 16:12:06 +02:00
parent 5b14f89164
commit 3cbac309f7
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
707,
/**/
706,
/**/