vfs_streams_xattr: stream names may contain colons
commitb827f2821c75c000a1aa11b74abeffa1369d44f7
authorRalph Boehme <slow@samba.org>
Sat, 9 May 2015 13:02:03 +0000 (9 15:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 17 Aug 2015 20:42:17 +0000 (17 22:42 +0200)
tree70bbd8ba16377a8bd948ec2f2e5f7f8759483b53
parent34fc0cd146aaa0ead8c9e9c0ca4d7b0a6da6924f
vfs_streams_xattr: stream names may contain colons

With vfs_fruit option "fruit:encoding = native" we're already converting
stream names that contain illegal NTFS characters from their on-the-wire
Unicode Private Range encoding to their native ASCII representation.

As as result the name of xattrs storing the streams (via
vfs_streams_xattr) may contain a colon, so we have to use strrchr_m()
instead of strchr_m() for matching the stream type suffix.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit fb9a64ea37dd4b0cd754fe6d421417a4c8ccbc57)
source3/modules/vfs_streams_xattr.c