Merge pull request #44 from giuseppe/ignore-EINVAL-on-copy-xattr

main: ignore EINVAL when copying xattrs
This commit is contained in:
Daniel J Walsh 2019-02-12 06:27:52 -08:00 committed by GitHub
commit ff65edefc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
main.c
View File

@ -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;