summaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-05-07 17:09:24 +0000
committerBram Moolenaar <Bram@vim.org>2008-05-07 17:09:24 +0000
commit588ebeb7a5a7ae7c86b4fe5c3aa34ad117b93b70 (patch)
tree4260a2d4f4d6debb7add7a4ae36758354ee33440 /src/memfile.c
parent2b57078d735b72fdbfa70eb9fcad1a4c1800f959 (diff)
downloadvim-git-588ebeb7a5a7ae7c86b4fe5c3aa34ad117b93b70.tar.gz
updated for version 7.1-296v7.1.296
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/memfile.c b/src/memfile.c
index d0dd8deef..f1ce68143 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -1346,5 +1346,10 @@ mf_do_open(mfp, fname, flags)
mfp->mf_ffname = NULL;
}
else
+ {
+#ifdef HAVE_SELINUX
+ mch_copy_sec(fname, mfp->mf_fname);
+#endif
mch_hide(mfp->mf_fname); /* try setting the 'hidden' flag */
+ }
}