0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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)
This commit is contained in:
Bram Moolenaar
2013-11-12 05:12:03 +01:00
parent cc63c647ee
commit 0671de335f
2 changed files with 5 additions and 0 deletions

View 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)
{