vfs_fruit: set delete-on-close for empty finderinfo
commita73a7512390d71009feee0d0703730539da6fdf6
authorRalph Boehme <slow@samba.org>
Wed, 6 Dec 2017 21:09:52 +0000 (6 22:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 26 Jan 2018 00:29:54 +0000 (26 01:29 +0100)
tree15c6899eb5cac92a3591c666fa69985c5ca44364
parentf06e2514748672fb5847629056357427b91ef44b
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

(cherry picked from commit e61e9e98e9ff461055daae2fe78f0202f7ed8663)

Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-7-test): Fri Jan 26 01:29:54 CET 2018 on sn-devel-144
selftest/knownfail.d/samba3.vfs.fruit
source3/modules/vfs_fruit.c