summaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-02 14:05:38 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-02 14:05:38 +0200
commit5bd32f47ec5121a5485d180add1dacb73472e4b2 (patch)
treef779d9e3e80717a5a8f06a154eaa332ab2452618 /src/memfile.c
parent6716d9af113a5c4bcc7fdf8fd24f3d633db386c7 (diff)
downloadvim-git-5bd32f47ec5121a5485d180add1dacb73472e4b2.tar.gz
updated for version 7.4.238v7.4.238
Problem: Vim does not support the smack library. Solution: Add smack support (Jose Bollo)
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memfile.c b/src/memfile.c
index 2826aeabc..d1bc96a57 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -1358,7 +1358,7 @@ mf_do_open(mfp, fname, flags)
if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
#endif
-#ifdef HAVE_SELINUX
+#if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
mch_copy_sec(fname, mfp->mf_fname);
#endif
mch_hide(mfp->mf_fname); /* try setting the 'hidden' flag */