vfs_fruit: refactor fruit_streaminfo()
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 14:49:03 +0000 (15:49 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
commitef2c81eb9fe5e12d5694af665be198994e02762d
tree4616b3a28f3227e787ea6c2382c0c26360190ae0
parent72325d946aacc1beec0eb411f4c7209e06850e91
vfs_fruit: refactor fruit_streaminfo()

Handle all settings of fruit:metadata and fruit:resource in helper
functions.

Resource fork streams of 0 bytes must be filtered out, this wasn't done
previously for the fruit:resource=stream and xattr case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_fruit.c