vfs_fruit: pass stream size to delete_invalid_meta_stream()
authorRalph Boehme <slow@samba.org>
Sat, 20 Oct 2018 21:46:43 +0000 (23:46 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:22 +0000 (21:27 +0100)
commit6e13dbddaec9f8118e11309297f85c3cdfd22e43
tree6046a3a6655af475bb8a53073a7d2ae39b179d90
parent6fd256afcd5fedc894036efbfba1fc6d2264fba9
vfs_fruit: pass stream size to delete_invalid_meta_stream()

delete_invalid_meta_stream() is meant to guard against random data being
present in the FinderInfo stream. If the stream size is 0, it's likely a
freshly created stream where no data has been written to yet, so don't
delete it.

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