Skip to content

Commit d6ff155

Browse files
committed
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)
1 parent d37e6b8 commit d6ff155

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/fileio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6706,6 +6706,9 @@ vim_rename(from, to)
67066706
#ifdef HAVE_ACL
67076707
mch_set_acl(to, acl);
67086708
mch_free_acl(acl);
6709+
#endif
6710+
#ifdef HAVE_SELINUX
6711+
mch_copy_sec(from, to)
67096712
#endif
67106713
if (errmsg != NULL)
67116714
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
89,
741743
/**/
742744
88,
743745
/**/

0 commit comments

Comments
 (0)