0
0
mirror of https://github.com/vim/vim.git synced 2025-10-09 06:14:17 -04:00

updated for version 7.4.238

Problem:    Vim does not support the smack library.
Solution:   Add smack support (Jose Bollo)
This commit is contained in:
Bram Moolenaar
2014-04-02 14:05:38 +02:00
parent 6716d9af11
commit 5bd32f47ec
8 changed files with 214 additions and 24 deletions

View File

@@ -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 */