mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Final fix for bug #9130 - Certain xattrs cause Windows error 0x800700FF
The spec lies when it says that NextEntryOffset is the only value considered when finding the next EA. We were adding 4 more extra pad bytes than needed (i.e. if the next entry already was on a 4 byte boundary, then we were adding 4 additional pad bytes). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
parent
43becd6f30
commit
9b94de161f
@ -499,7 +499,7 @@ static NTSTATUS fill_ea_chained_buffer(TALLOC_CTX *mem_ctx,
|
||||
this_size = 0x08 + dos_namelen + 1 + ea_list->ea.value.length;
|
||||
|
||||
if (ea_list->next) {
|
||||
pad = 4 - (this_size % 4);
|
||||
pad = (4 - (this_size % 4)) % 4;
|
||||
this_size += pad;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user