changeset 5479:6707c44cec61 v7.4.089

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)
author Bram Moolenaar <bram@vim.org>
date Tue, 12 Nov 2013 05:12:03 +0100
parents 8598fbd3bc5e
children 82ace7765f3a
files src/fileio.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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,