Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hsiangkao:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
affggh authored Jun 13, 2023
2 parents da08813 + 363966d commit be50785
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,7 @@ int erofs_build_shared_xattrs_from_path(const char *path)
};

item->next_shared_xattr = sorted_n[i + 1];
item->shared_xattr_id = (off + p) /
sizeof(struct erofs_xattr_entry);
item->shared_xattr_id = (off + p) / sizeof(__le32);

memcpy(buf + p, &entry, sizeof(entry));
p += sizeof(struct erofs_xattr_entry);
Expand Down

0 comments on commit be50785

Please sign in to comment.