vfs_fruit: remove check for number of xattrs from ad_convert_xattr
commitbfa9fd3162114961c5f6ad3a15fb1cd257cac2f9
authorRalph Boehme <slow@samba.org>
Fri, 19 Oct 2018 10:15:42 +0000 (19 12:15 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Nov 2018 17:58:13 +0000 (1 18:58 +0100)
treee836db60bec8b19aafc48fd4c15ea329e099a0ef
parentec065a8ac2e4f675ed7cc949ae20e75235dede95
vfs_fruit: remove check for number of xattrs from ad_convert_xattr

Turns out that there exist AppleDouble files with an extended FinderInfo
entry that includes the xattr marshall buffer, but the count of xattrs
in the buffer is just zero.

We do want to discard this extended FinderInfo entry and convert it to a
simple fixed size FinderInfo entry, so remove the check.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13649

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 5d565f636fcf49fc1bbbfbc24ef730d2f7cc2cf0)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Thu Nov  1 18:58:13 CET 2018 on sn-devel-144
source3/modules/vfs_fruit.c