vfs_fruit: don't unlink 0-byte size truncated streams
commitaa7de9869be13fc28ef5112c0ab5c2951230310d
authorRalph Boehme <slow@samba.org>
Sat, 20 Oct 2018 12:54:48 +0000 (20 14:54 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 08:10:24 +0000 (6 09:10 +0100)
treeabcdc0a58159c8b6124812b34e05b0277f665eeb
parent0893dd1a772e1cfa8f3da00ab2c81ec2a15b8e6e
vfs_fruit: don't unlink 0-byte size truncated streams

This caused all sort of havoc with subsequent SMB request that acted on
the handle of the then deleted backend storage (file or blob, depending
on the used streams module).

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 287082d739362ad068df37076712927ccd7ca90c)
source3/modules/vfs_fruit.c