From 81e220147af74dfd106c910695aa812211f48d53 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 12 Feb 2019 11:33:18 +0100 Subject: [PATCH] main: ignore EINVAL when copying xattrs Signed-off-by: Giuseppe Scrivano --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index bbe4171..ddc930b 100644 --- a/main.c +++ b/main.c @@ -1696,7 +1696,11 @@ copy_xattr (int sfd, int dfd, char *buf, size_t buf_size) return -1; if (fsetxattr (dfd, it, xattr_buf, s, 0) < 0) - return -1; + { + if (errno == EINVAL) + continue; + return -1; + } } } return 0;