diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-12 05:12:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-12 05:12:03 +0100 |
commit | 0671de335f87c15aa989e99952098feea1285830 (patch) | |
tree | 5f73a706ca8e599a11b57540a5657d29800efe15 /src/fileio.c | |
parent | cc63c647eee82ca4f3a9c7b09c1bd86933e913d4 (diff) |
updated for version 7.4.089v7.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)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 233990bf50..9db984d3fa 100644 --- 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); |