mirror of
https://github.com/samba-team/samba.git
synced 2025-02-15 05:57:49 +03:00
vfs_fruit: move FinderInfo lenght check to ad_convert()
The final step in consolidating all conversion related work in ad_convert(). No change in behaviour. 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 4f1174b6eb2257d789a1eb9c925ccc561bab2f16)
This commit is contained in:
parent
e5a897e796
commit
9f913fdad8
@ -1170,6 +1170,10 @@ static int ad_convert(struct adouble *ad,
|
||||
ssize_t len;
|
||||
bool ok;
|
||||
|
||||
if (ad_getentrylen(ad, ADEID_FINDERI) == ADEDLEN_FINDERI) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
origlen = ad_getentryoff(ad, ADEID_RFORK) +
|
||||
ad_getentrylen(ad, ADEID_RFORK);
|
||||
|
||||
@ -1485,10 +1489,6 @@ static ssize_t ad_read_rsrc_adouble(struct adouble *ad,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ad_getentrylen(ad, ADEID_FINDERI) == ADEDLEN_FINDERI) {
|
||||
return len;
|
||||
}
|
||||
|
||||
/*
|
||||
* Try to fixup AppleDouble files created by OS X with xattrs
|
||||
* appended to the ADEID_FINDERI entry.
|
||||
|
Loading…
x
Reference in New Issue
Block a user