mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user