neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 3c76038755b5c0c63604f2baa481491bb0efe2e1
parent bd8550ddca9e46dba3f867430b9495b51dde54f0
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue,  3 Oct 2023 07:45:51 +0800

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

https://github.com/vim/vim/commit/993b17569b5acffe2d8941d1709a55da4e439755

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>
Diffstat:
Msrc/nvim/os/fs.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c @@ -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;