From: Bram Moolenaar Date: Tue, 21 Apr 2015 14:12:06 +0000 (+0200) Subject: patch 7.4.707 X-Git-Tag: v7.4.707 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cbac309f78f92434f75da5c4963d8caf4b6d3d3;p=vim patch 7.4.707 Problem: Undo files can have their executable bit set. Solution: Strip of the executable bit. (Mikael Berthe) --- diff --git a/src/undo.c b/src/undo.c index 034d16c14..c29832b7c 100644 --- a/src/undo.c +++ b/src/undo.c @@ -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. */ diff --git a/src/version.c b/src/version.c index b6676b762..47015b142 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 707, /**/ 706, /**/