mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[ext2fs] update ext2fs to latest
* Also drop nt_io_manager() as a function call and just use a direct ref to the manager.
This commit is contained in:
parent
fce645543f
commit
3056d54cc1
31 changed files with 1365 additions and 369 deletions
|
@ -1550,14 +1550,15 @@ errcode_t ext2fs_xattr_set(struct ext2_xattr_handle *h,
|
|||
new_value, &value_len);
|
||||
if (ret)
|
||||
goto out;
|
||||
} else
|
||||
} else if (value_len)
|
||||
memcpy(new_value, value, value_len);
|
||||
|
||||
/* Imitate kernel behavior by skipping update if value is the same. */
|
||||
for (x = h->attrs; x < h->attrs + h->count; x++) {
|
||||
if (!strcmp(x->name, name)) {
|
||||
if (!x->ea_ino && x->value_len == value_len &&
|
||||
!memcmp(x->value, new_value, value_len)) {
|
||||
(!value_len ||
|
||||
!memcmp(x->value, new_value, value_len))) {
|
||||
ret = 0;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue