1 From f42cbe1a91a3a6f79d1eec594ce7c72aec79179b Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
3 Date: Wed, 9 Nov 2022 05:08:22 +0100
4 Subject: [PATCH] don't fail hard on EACCES when copying xattrs
6 On btrfs the xattr "btrfs.compressed" requires privileges to set,
7 otherwise EACCES is returned.
8 When patch tries to do copy this attribute it receives the error and
12 1 file changed, 2 insertions(+), 2 deletions(-)
16 @@ -182,7 +182,7 @@ copy_attr_error (struct error_context *c
20 - if (err != ENOSYS && err != ENOTSUP && err != EPERM)
21 + if (err != ENOSYS && err != ENOTSUP && err != EPERM && err != EACCES)
23 /* use verror module to print error message */
25 @@ -284,7 +284,7 @@ set_file_attributes (char const *to, enu
28 if (copy_attr (from, to) != 0
29 - && errno != ENOSYS && errno != ENOTSUP && errno != EPERM)
30 + && errno != ENOSYS && errno != ENOTSUP && errno != EPERM && errno != EACCES)