s4:torture:vfs_fruit: update AFP_AfpInfo IO tests
commita48eb89ded02597b35e7a7750db9dca2052c3df6
authorRalph Boehme <slow@samba.org>
Sat, 19 Dec 2015 10:10:54 +0000 (19 11:10 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Jan 2016 09:07:18 +0000 (6 10:07 +0100)
tree97801561100b4354dfd2dad4ab1499516ee42012
parentc99c91003355498c9623bfbe6782526ec25c84f3
s4:torture:vfs_fruit: update AFP_AfpInfo IO tests

When reading from the AFP_AfpInfo stream, OS X ignores the offset from
the request and always reads from offset=0.

The offset bounds check has a off-by-1 bug in OS X, so a request
offset=60 (AFP_AfpInfo stream has a ficed size of 60 bytes), len=1
returns 1 byte from offset 0 insteaf of returning 0.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit decde0b4812eba5f80b717fd2ae868558a022753)
source4/torture/vfs/fruit.c