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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 08:11:25 +0000 (09:11 +0100)
commitc23f1da9ca37b5dae64350afab96b4e5f6a1fb0f
tree4c955e5c39b78833c75ca560ff36c0534e4ccf92
parenta5b677d383b88072b789bb4c6ec0f590de0ab153
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>
(cherry picked from commit d7d92710711f6e555ed45c1dda528cd6a83e1bf5)
source3/modules/vfs_fruit.c