diff src/fileio.c @ 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 9801d06e7b4c
children 9502d1caf90b
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);