summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 233990bf50..9db984d3fa 100644
--- 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);