commit | 3cbac309f78f92434f75da5c4963d8caf4b6d3d3 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Apr 21 16:12:06 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Apr 21 16:12:06 2015 +0200 |
tree | 6837a5cd0d878a32dc6bf30b03f0b512d52dc8b9 | |
parent | 5b14f89164fa2f40f52283226c98005887568317 [diff] [blame] |
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 034d16c..c29832b 100644 --- a/src/undo.c +++ b/src/undo.c
@@ -1614,8 +1614,8 @@ #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. */