vfs_fruit: set delete-on-close for empty finderinfo
authorRalph Boehme <slow@samba.org>
Wed, 6 Dec 2017 21:09:52 +0000 (22:09 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 9 Jan 2018 16:09:12 +0000 (17:09 +0100)
commite61e9e98e9ff461055daae2fe78f0202f7ed8663
tree83009e3c6649d27ed4453a2f69a434b921c734c9
parent70d8f7c5d25f35b58620c2db8f57c7c0758267b3
vfs_fruit: set delete-on-close for empty finderinfo

We previously removed the stream from the underlying filesystem stream
backing store when the client zeroes out FinderInfo in the AFP_AfpInfo
stream, but this causes certain operations to fail (eg stat) when trying
to access the stream over any file-handle open on that stream.

So instead of deleting, set delete-on-close on the stream. The previous
commit already implemented not to list list streams with delete-on-close
set which is necessary to implemenent correct macOS semantics for this
particular stream.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Jan  9 17:09:12 CET 2018 on sn-devel-144
selftest/knownfail.d/samba3.vfs.fruit
source3/modules/vfs_fruit.c