mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -2832,8 +2832,10 @@ mch_copy_sec(char_u *from_file, char_u *to_file)
|
|||||||
|
|
||||||
if (selinux_enabled > 0)
|
if (selinux_enabled > 0)
|
||||||
{
|
{
|
||||||
security_context_t from_context = NULL;
|
// Use "char *" instead of "security_context_t" to avoid a deprecation
|
||||||
security_context_t to_context = NULL;
|
// warning.
|
||||||
|
char *from_context = NULL;
|
||||||
|
char *to_context = NULL;
|
||||||
|
|
||||||
if (getfilecon((char *)from_file, &from_context) < 0)
|
if (getfilecon((char *)from_file, &from_context) < 0)
|
||||||
{
|
{
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1818,
|
||||||
/**/
|
/**/
|
||||||
1817,
|
1817,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user