aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-21 11:15:10 +0200
committerGitHub <noreply@github.com>2019-05-21 11:15:10 +0200
commit1de77bbcec8ea4e50475e9b33986246e47614b84 (patch)
tree7dbdb40a561e7f894a07654250512373ef567080 /src/nvim/fileio.c
parentca1ce590257c35426aeeaac349317d2cb163cd2e (diff)
downloadrneovim-1de77bbcec8ea4e50475e9b33986246e47614b84.tar.gz
rneovim-1de77bbcec8ea4e50475e9b33986246e47614b84.tar.bz2
rneovim-1de77bbcec8ea4e50475e9b33986246e47614b84.zip
cleanup: remove HAVE_SELINUX #10040
We never define HAVE_SELINUX, and no one has asked for it. So remove the dead code.
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 15d7a885d5..b468b7bb8c 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -2900,9 +2900,6 @@ buf_write (
#ifdef HAVE_ACL
mch_set_acl(backup, acl);
#endif
-#ifdef HAVE_SELINUX
- mch_copy_sec(fname, backup);
-#endif
break;
}
}
@@ -3385,13 +3382,6 @@ restore_backup:
end = 0;
}
-#ifdef HAVE_SELINUX
- // Probably need to set the security context.
- if (!backup_copy) {
- mch_copy_sec(backup, wfname);
- }
-#endif
-
#ifdef UNIX
// When creating a new file, set its owner/group to that of the original
// file. Get the new device and inode number.
@@ -4760,9 +4750,6 @@ int vim_rename(const char_u *from, const char_u *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);
return -1;