vfs_fruit: let fruit_open_meta() with O_CREAT return a fake-fd
authorRalph Boehme <slow@samba.org>
Wed, 22 Aug 2018 13:25:26 +0000 (15:25 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 08:10:25 +0000 (09:10 +0100)
commit0eebb6e0a47a53709b7a8ec67bd97dae7b1fd53e
tree7dbf7e37852d3b0803e6a0c53555ff8ef22d4854
parentcbbd530968bf68195450bb74339f50a0440e8dae
vfs_fruit: let fruit_open_meta() with O_CREAT return a fake-fd

This is the final step in implementing the needed macOS semantics on the
FinderInfo stream: as long as the client hasn't written a non-zero
FinderInfo blob to the stream, there mustn't be a visible filesystem
entry for other openers.

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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Nov  1 01:14:23 CET 2018 on sn-devel-144

(cherry picked from commit 1b2de44ea8114cf2025e8b8c843131e2f2dbed27)
selftest/knownfail.d/samba3.vfs.fruit
source3/modules/vfs_fruit.c