summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-11-12 05:12:03 +0100
committerBram Moolenaar <Bram@vim.org>2013-11-12 05:12:03 +0100
commit0671de335f87c15aa989e99952098feea1285830 (patch)
tree5f73a706ca8e599a11b57540a5657d29800efe15 /src
parentcc63c647eee82ca4f3a9c7b09c1bd86933e913d4 (diff)
downloadvim-0671de335f87c15aa989e99952098feea1285830.zip
updated for version 7.4.089
Problem: When editing a file in a directory mounted through sshfs Vim doesn't set the security context on a renamed file. Solution: Add mch_copy_sec() to vim_rename(). (Peter Backes)
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c3
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 233990bf5..9db984d3f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6707,6 +6707,9 @@ vim_rename(from, to)
mch_set_acl(to, acl);
mch_free_acl(acl);
#endif
+#ifdef HAVE_SELINUX
+ mch_copy_sec(from, to)
+#endif
if (errmsg != NULL)
{
EMSG2(errmsg, to);
diff --git a/src/version.c b/src/version.c
index d8de7a949..e7a9c5831 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 89,
+/**/
88,
/**/
87,