Skip to content

Commit 993b175

Browse files
Gene Cchrisbra
authored andcommitted
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 <[email protected]> Co-authored-by: Gene C <[email protected]>
1 parent 12a0d99 commit 993b175

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/errors.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3554,12 +3554,10 @@ EXTERN char e_invalid_format_specifier_str[]
35543554
INIT(= N_("E1505: Invalid format specifier: %s"));
35553555
EXTERN char e_xattr_erange[]
35563556
INIT(= N_("E1506: Buffer too small to copy xattr value or key"));
3557-
EXTERN char e_xattr_enotsup[]
3558-
INIT(= N_("E1507: Extended attributes are not supported by the filesystem"));
35593557
EXTERN char e_xattr_e2big[]
35603558
INIT(= N_("E1508: Size of the extended attribute value is larger than the maximum size allowed"));
35613559
EXTERN char e_xattr_other[]
35623560
INIT(= N_("E1509: Error occured when reading or writing extended attribute"));
3563-
// E1509 - E1519 unused
3561+
// E1507, E1509 - E1519 unused
35643562
EXTERN char e_aptypes_is_null_nr_str[]
35653563
INIT(= "E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");

src/os_unix.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,8 +3154,9 @@ mch_copy_xattr(char_u *from_file, char_u *to_file)
31543154
errmsg = e_xattr_e2big;
31553155
goto error_exit;
31563156
case ENOTSUP:
3157-
errmsg = e_xattr_enotsup;
3158-
goto error_exit;
3157+
case EACCES:
3158+
case EPERM:
3159+
break;
31593160
case ERANGE:
31603161
errmsg = e_xattr_erange;
31613162
goto error_exit;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1975,
707709
/**/
708710
1974,
709711
/**/

0 commit comments

Comments
 (0)