vfs_fruit: prepare fruit_pread_meta() for reading on fake-fd
authorRalph Boehme <slow@samba.org>
Wed, 22 Aug 2018 13:22:08 +0000 (15:22 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:22 +0000 (21:27 +0100)
commitd7d92710711f6e555ed45c1dda528cd6a83e1bf5
tree4f9d5bd023e66f19002c43cbf998ea69be77c6f8
parent4a5c9a9e73230f640eb045a3c47af75b5be9f1d6
vfs_fruit: prepare fruit_pread_meta() for reading on fake-fd

If the read on the stream fails we may have hit a handle on a just
created stream (fio->created=true) with no data written yet.

If that's the case return an empty initialized FinderInfo blob.

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

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