Merge pull request #352 from giuseppe/ignore-eoverflow

main: ignore EOVERFLOW when copying xattrs
This commit is contained in:
Daniel J Walsh 2022-06-01 15:16:46 -04:00 committed by GitHub
commit 878cb0ccad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
main.c
View File

@ -2699,7 +2699,11 @@ copy_xattr (int sfd, int dfd, char *buf, size_t buf_size)
s = safe_read_xattr (&v, sfd, it, 256);
if (s < 0)
return -1;
{
if (errno == EOVERFLOW)
continue;
return -1;
}
if (fsetxattr (dfd, it, v, s, 0) < 0)
{