# HG changeset patch # User Bram Moolenaar # Date 1429625526 -7200 # Node ID 63b2bc619d5a91d89c4f4c6ee438b6c8d59ac267 # Parent 81df4c7d2bc2f2d274f9484a0788df251fa8ab2a 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 707, +/**/ 706, /**/ 705,