0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.0.1975: xattr: permission-denied errors on write

Problem:  xattr: permission-denied errors on write
Solution: ignore those errors

closes: #13246

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Gene C <arch@sapience.com>
This commit is contained in:
Gene C 2023-10-02 22:42:26 +02:00 committed by Christian Brabandt
parent 12a0d999b1
commit 993b17569b
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
3 changed files with 6 additions and 5 deletions

View File

@ -3554,12 +3554,10 @@ EXTERN char e_invalid_format_specifier_str[]
INIT(= N_("E1505: Invalid format specifier: %s")); INIT(= N_("E1505: Invalid format specifier: %s"));
EXTERN char e_xattr_erange[] EXTERN char e_xattr_erange[]
INIT(= N_("E1506: Buffer too small to copy xattr value or key")); INIT(= N_("E1506: Buffer too small to copy xattr value or key"));
EXTERN char e_xattr_enotsup[]
INIT(= N_("E1507: Extended attributes are not supported by the filesystem"));
EXTERN char e_xattr_e2big[] EXTERN char e_xattr_e2big[]
INIT(= N_("E1508: Size of the extended attribute value is larger than the maximum size allowed")); INIT(= N_("E1508: Size of the extended attribute value is larger than the maximum size allowed"));
EXTERN char e_xattr_other[] EXTERN char e_xattr_other[]
INIT(= N_("E1509: Error occured when reading or writing extended attribute")); INIT(= N_("E1509: Error occured when reading or writing extended attribute"));
// E1509 - E1519 unused // E1507, E1509 - E1519 unused
EXTERN char e_aptypes_is_null_nr_str[] EXTERN char e_aptypes_is_null_nr_str[]
INIT(= "E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s"); INIT(= "E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");

View File

@ -3154,8 +3154,9 @@ mch_copy_xattr(char_u *from_file, char_u *to_file)
errmsg = e_xattr_e2big; errmsg = e_xattr_e2big;
goto error_exit; goto error_exit;
case ENOTSUP: case ENOTSUP:
errmsg = e_xattr_enotsup; case EACCES:
goto error_exit; case EPERM:
break;
case ERANGE: case ERANGE:
errmsg = e_xattr_erange; errmsg = e_xattr_erange;
goto error_exit; goto error_exit;

View File

@ -704,6 +704,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 */
/**/
1975,
/**/ /**/
1974, 1974,
/**/ /**/