comparison src/memfile.c @ 5788:410ef4f1a3d2 v7.4.238

updated for version 7.4.238 Problem: Vim does not support the smack library. Solution: Add smack support (Jose Bollo)
author Bram Moolenaar <bram@vim.org>
date Wed, 02 Apr 2014 14:05:38 +0200
parents fba9c0f86f77
children a12d422ed16c
comparison
equal deleted inserted replaced
5787:3a368abed51c 5788:410ef4f1a3d2
1356 #ifdef HAVE_FD_CLOEXEC 1356 #ifdef HAVE_FD_CLOEXEC
1357 int fdflags = fcntl(mfp->mf_fd, F_GETFD); 1357 int fdflags = fcntl(mfp->mf_fd, F_GETFD);
1358 if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) 1358 if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
1359 fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC); 1359 fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
1360 #endif 1360 #endif
1361 #ifdef HAVE_SELINUX 1361 #if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
1362 mch_copy_sec(fname, mfp->mf_fname); 1362 mch_copy_sec(fname, mfp->mf_fname);
1363 #endif 1363 #endif
1364 mch_hide(mfp->mf_fname); /* try setting the 'hidden' flag */ 1364 mch_hide(mfp->mf_fname); /* try setting the 'hidden' flag */
1365 } 1365 }
1366 } 1366 }