From a2cf628603bf5948f96ceb90b653d2879a9d2f9e Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Wed, 29 Apr 2015 20:26:49 +0200 Subject: vim-patch:7.4.707 #2541 Problem: Undo files can have their executable bit set. Solution: Strip of the executable bit. (Mikael Berthe) https://github.com/vim/vim/commit/v7-4-707 --- src/nvim/undo.c | 4 ++-- src/nvim/version.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvim/undo.c b/src/nvim/undo.c index d8cf8aa7b7..3999f475c6 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1035,8 +1035,8 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash) } } - /* strip any s-bit */ - perm = perm & 0777; + // Strip any sticky and executable bits. + perm = perm & 0666; /* If the undo file already exists, verify that it actually is an undo * file, and delete it. */ diff --git a/src/nvim/version.c b/src/nvim/version.c index 7d5196a707..e80b653c00 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -76,7 +76,7 @@ static int included_patches[] = { 710, //709, //708, - //707, + 707, 706, //705, //704, -- cgit