s4:torture:vfs_fruit: update AFP_AfpInfo IO tests
authorRalph Boehme <slow@samba.org>
Sat, 19 Dec 2015 10:10:54 +0000 (11:10 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 21 Dec 2015 22:21:18 +0000 (23:21 +0100)
commitdecde0b4812eba5f80b717fd2ae868558a022753
tree9d094a733660decd8ea878576a16f939f429b2af
parentf569fd5e44300ab41aa7298b3efdcac99cd330f2
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>
source4/torture/vfs/fruit.c