vfs_streams_xattr: fix and simplify streams_xattr_get_name()
authorRalph Boehme <slow@samba.org>
Mon, 24 Aug 2015 15:45:14 +0000 (17:45 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 16 Oct 2015 21:27:01 +0000 (23:27 +0200)
commit2881679e3ecbaf07cdd82ba65af8d55e5e3be800
tree2ea544c044f7453dc20f5c60a14d8c704b4941d0
parentfedd09662c889fb796135d86836c160171fac68d
vfs_streams_xattr: fix and simplify streams_xattr_get_name()

streams_xattr_get_name() fails to chop off the stream type in case
config->store_stream_type is false and the passed stream name contains a
stream type.

Eg when the passed in stream name is ":mystream:$DATA", but
config->store_stream_type is false, we must generate a xattr name of
"mystream" or "user.mystream".

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

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): Fri Oct 16 23:27:01 CEST 2015 on sn-devel-104
source3/modules/vfs_streams_xattr.c