diff options
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 13 |
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; |