]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.089 v7.4.089
authorBram Moolenaar <Bram@vim.org>
Tue, 12 Nov 2013 04:12:03 +0000 (05:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 12 Nov 2013 04:12:03 +0000 (05:12 +0100)
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)

src/fileio.c
src/version.c

index 233990bf502418ca155c0f23270b3329f2f1e455..9db984d3fab1978f74b4383470c27880facdf0c7 100644 (file)
@@ -6706,6 +6706,9 @@ vim_rename(from, to)
 #ifdef HAVE_ACL
     mch_set_acl(to, acl);
     mch_free_acl(acl);
+#endif
+#ifdef HAVE_SELINUX
+    mch_copy_sec(from, to)
 #endif
     if (errmsg != NULL)
     {
index d8de7a949ad9bd25058b744f8088262ceb87f646..e7a9c58316fbbf22b15894fb008c2184cb4641b6 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    89,
 /**/
     88,
 /**/