]> granicus.if.org Git - vim/commitdiff
patch 7.4.707 v7.4.707
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Apr 2015 14:12:06 +0000 (16:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Apr 2015 14:12:06 +0000 (16:12 +0200)
Problem:    Undo files can have their executable bit set.
Solution:   Strip of the executable bit. (Mikael Berthe)

src/undo.c
src/version.c

index 034d16c14eb0d3a99805b539595e011712fc8862..c29832b7c04acc3bddaeecb9a445c2b993d2de8e 100644 (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. */
index b6676b7620cb527880b929a7afde988757008cda..47015b142bbb8cc60fbc9b470633b0f74a877119 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    707,
 /**/
     706,
 /**/