0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1818: SE Linux: deprecation warning for security_context_t

Problem:    SE Linux: deprecation warning for security_context_t.
Solution:   Use "char *" instead. (James McCoy, closes #7093)
This commit is contained in:
Bram Moolenaar
2020-10-09 23:04:47 +02:00
parent e8211a33dc
commit 8956023920
2 changed files with 6 additions and 2 deletions

View File

@@ -2832,8 +2832,10 @@ mch_copy_sec(char_u *from_file, char_u *to_file)
if (selinux_enabled > 0)
{
security_context_t from_context = NULL;
security_context_t to_context = NULL;
// Use "char *" instead of "security_context_t" to avoid a deprecation
// warning.
char *from_context = NULL;
char *to_context = NULL;
if (getfilecon((char *)from_file, &from_context) < 0)
{