Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
5478:8598fbd3bc5e | 5479:6707c44cec61 |
---|---|
6705 #endif | 6705 #endif |
6706 #ifdef HAVE_ACL | 6706 #ifdef HAVE_ACL |
6707 mch_set_acl(to, acl); | 6707 mch_set_acl(to, acl); |
6708 mch_free_acl(acl); | 6708 mch_free_acl(acl); |
6709 #endif | 6709 #endif |
6710 #ifdef HAVE_SELINUX | |
6711 mch_copy_sec(from, to) | |
6712 #endif | |
6710 if (errmsg != NULL) | 6713 if (errmsg != NULL) |
6711 { | 6714 { |
6712 EMSG2(errmsg, to); | 6715 EMSG2(errmsg, to); |
6713 return -1; | 6716 return -1; |
6714 } | 6717 } |