From: Bram Moolenaar Date: Tue, 12 Nov 2013 04:12:03 +0000 (+0100) Subject: updated for version 7.4.089 X-Git-Tag: v7.4.089 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0671de335f87c15aa989e99952098feea1285830;p=vim 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 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, /**/