From 0671de335f87c15aa989e99952098feea1285830 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 12 Nov 2013 05:12:03 +0100 Subject: [PATCH] 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) --- src/fileio.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index 233990bf5..9db984d3f 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -6706,6 +6706,9 @@ vim_rename(from, to) #ifdef HAVE_ACL mch_set_acl(to, acl); mch_free_acl(acl); +#endif +#ifdef HAVE_SELINUX + mch_copy_sec(from, to) #endif if (errmsg != NULL) { diff --git a/src/version.c b/src/version.c index d8de7a949..e7a9c5831 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 89, /**/ 88, /**/ -- 2.40.0