To: vim_dev@googlegroups.com Subject: Patch 8.2.1818 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1818 Problem: SE Linux: deprecation warning for security_context_t. Solution: Use "char *" instead. (James McCoy, closes #7093) Files: src/os_unix.c *** ../vim-8.2.1817/src/os_unix.c 2020-10-05 21:39:21.283424484 +0200 --- src/os_unix.c 2020-10-09 23:03:17.376426580 +0200 *************** *** 2832,2839 **** if (selinux_enabled > 0) { ! security_context_t from_context = NULL; ! security_context_t to_context = NULL; if (getfilecon((char *)from_file, &from_context) < 0) { --- 2832,2841 ---- if (selinux_enabled > 0) { ! // 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) { *** ../vim-8.2.1817/src/version.c 2020-10-09 22:04:25.210842991 +0200 --- src/version.c 2020-10-09 23:04:26.092201382 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1818, /**/ -- Q: What is a patch 22? A: A patch you need to include to make it possible to include patches. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///