vfs_fruit: delete 0 byte size streams if AAPL is enabled
commit0a3ba68abb04b1c2bcc781bce393415fc9677cf5
authorRalph Boehme <slow@samba.org>
Thu, 17 May 2018 14:48:09 +0000 (17 16:48 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Jul 2018 11:11:21 +0000 (12 13:11 +0200)
treebb1c95315fba0ed01b62bb59ef321fe385276bb0
parent1a500dfef3d31f6f37af3ef7b2f72837ba99a102
vfs_fruit: delete 0 byte size streams if AAPL is enabled

macOS SMB server uses xattrs as storage backend for streams, directly
exposing xattr get/set characteristics. Setting EOF on a stream to 0
just deletes the xattr as macOS doesn't support 0-byte sized xattrs.

Note that this does not apply to the AFP_AfpInfo and AFP_Resource
streams, they have even stranger semantics and we have other tests
for those.

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

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): Wed May 30 02:34:29 CEST 2018 on sn-devel-144

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