vfs_fruit: use stream code for resource fork size calculation in readdir_attr_rfork_s...
authorRalph Boehme <slow@samba.org>
Wed, 22 May 2019 16:08:14 +0000 (18:08 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 May 2019 20:19:27 +0000 (20:19 +0000)
commita23bcc1916a49bf3e0edece190e5434e39862d2c
tree65eaa736794dd5843ea466fa55a89e56492b4294
parent83179a74119de84d20f796c241aae6bccb83a68b
vfs_fruit: use stream code for resource fork size calculation in readdir_attr_rfork_size()

This works as well, using an fstat() on the filehandle to get the size. This is
tested by the torture test "vfs.fruit.SMB2/CREATE context AAPL".

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c