vim-patch:9.0.1975: xattr: permission-denied errors on write (#25478)

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

closes: vim/vim#13246

993b17569b

N/A patches:
vim-patch:9.0.1965: wrong auto/configure script
vim-patch:9.0.1966: configure prints stray 6 when checking libruby

Co-authored-by: Gene C <arch@sapience.com>
This commit is contained in:
zeertzjq 2023-10-03 07:45:51 +08:00 committed by GitHub
parent bd8550ddca
commit 3c76038755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,6 @@
#ifdef HAVE_XATTR
static const char e_xattr_erange[]
= N_("E1506: Buffer too small to copy xattr value or key");
static const char e_xattr_enotsup[]
= N_("E1507: Extended attributes are not supported by the filesystem");
static const char e_xattr_e2big[]
= N_("E1508: Size of the extended attribute value is larger than the maximum size allowed");
static const char e_xattr_other[]
@ -800,9 +798,9 @@ void os_copy_xattr(const char *from_file, const char *to_file)
case E2BIG:
errmsg = e_xattr_e2big;
goto error_exit;
case ENOTSUP:
errmsg = e_xattr_enotsup;
goto error_exit;
case EACCES:
case EPERM:
break;
case ERANGE:
errmsg = e_xattr_erange;
goto error_exit;