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:14 +02:00
committed by Douglas Drumond
parent f8079779a1
commit 03a2a2c213
2 changed files with 4 additions and 2 deletions
+2 -2
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. */
+2
View File
@@ -756,6 +756,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
707,
/**/
706,
/**/