commit | 0671de335f87c15aa989e99952098feea1285830 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Nov 12 05:12:03 2013 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Nov 12 05:12:03 2013 +0100 |
tree | 5f73a706ca8e599a11b57540a5657d29800efe15 | |
parent | cc63c647eee82ca4f3a9c7b09c1bd86933e913d4 [diff] [blame] |
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)
diff --git a/src/fileio.c b/src/fileio.c index 233990b..9db984d 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -6707,6 +6707,9 @@ 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);