Skip to content

Commit

Permalink
Merge pull request #352 from giuseppe/ignore-eoverflow
Browse files Browse the repository at this point in the history
main: ignore EOVERFLOW when copying xattrs
  • Loading branch information
rhatdan authored Jun 1, 2022
2 parents e07e1f0 + f3f993f commit 878cb0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 878cb0c

Please sign in to comment.