mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 18:05:58 -04:00
Merge pull request #352 from giuseppe/ignore-eoverflow
main: ignore EOVERFLOW when copying xattrs
This commit is contained in:
commit
878cb0ccad
6
main.c
6
main.c
@ -2699,7 +2699,11 @@ copy_xattr (int sfd, int dfd, char *buf, size_t buf_size)
|
|||||||
|
|
||||||
s = safe_read_xattr (&v, sfd, it, 256);
|
s = safe_read_xattr (&v, sfd, it, 256);
|
||||||
if (s < 0)
|
if (s < 0)
|
||||||
return -1;
|
{
|
||||||
|
if (errno == EOVERFLOW)
|
||||||
|
continue;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (fsetxattr (dfd, it, v, s, 0) < 0)
|
if (fsetxattr (dfd, it, v, s, 0) < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user