cleanup: remove HAVE_SELINUX #10040

We never define HAVE_SELINUX, and no one has asked for it.
So remove the dead code.
This commit is contained in:
Justin M. Keyes
2019-05-21 11:15:10 +02:00
committed by GitHub
parent ca1ce59025
commit 1de77bbcec
5 changed files with 0 additions and 75 deletions

View File

@@ -2899,9 +2899,6 @@ buf_write (
#endif
#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.
@@ -4759,9 +4749,6 @@ int vim_rename(const char_u *from, const char_u *to)
#ifdef HAVE_ACL
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);