mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-14 17:56:11 -04:00
Merge pull request #44 from giuseppe/ignore-EINVAL-on-copy-xattr
main: ignore EINVAL when copying xattrs
This commit is contained in:
commit
ff65edefc7
4
main.c
4
main.c
@ -1696,9 +1696,13 @@ copy_xattr (int sfd, int dfd, char *buf, size_t buf_size)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (fsetxattr (dfd, it, xattr_buf, s, 0) < 0)
|
if (fsetxattr (dfd, it, xattr_buf, s, 0) < 0)
|
||||||
|
{
|
||||||
|
if (errno == EINVAL)
|
||||||
|
continue;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user