# HG changeset patch # User Bram Moolenaar # Date 1384229523 -3600 # Node ID 6707c44cec61d76026d5dcdd6573fb41cb89d0bd # Parent 8598fbd3bc5e5308cf049221ec6351d1ff2768cc 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 --- 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 89, +/**/ 88, /**/ 87,