# HG changeset patch # User Bram Moolenaar # Date 1602278104 -7200 # Node ID 0f205ff4a0fd83dbd52021b9d54b3ed296521044 # Parent 79366811bc717fbff840859ea065673d244acd48 patch 8.2.1818: SE Linux: deprecation warning for security_context_t Commit: https://github.com/vim/vim/commit/8956023920bb1b6f9c381739e59b9ddab4bf7798 Author: Bram Moolenaar Date: Fri Oct 9 23:04:47 2020 +0200 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 https://github.com/vim/vim/issues/7093) diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2832,8 +2832,10 @@ mch_copy_sec(char_u *from_file, char_u * 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) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1818, +/**/ 1817, /**/ 1816,