Merge pull request #47 from giuseppe/ignore-errors-if-setxattr-not-supported

fuse-overlayfs: ignore xattrs copy errors when not supported
This commit is contained in:
Daniel J Walsh 2019-02-22 06:35:06 -05:00 committed by GitHub
commit 53286d5dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
main.c
View File

@ -1765,7 +1765,7 @@ copy_xattr (int sfd, int dfd, char *buf, size_t buf_size)
if (fsetxattr (dfd, it, v, s, 0) < 0)
{
if (errno == EINVAL)
if (errno == EINVAL || errno == EOPNOTSUPP)
continue;
return -1;
}