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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202010092105.099L5o9w3557564%40masaka.moolenaar.net.