vfs_streams_xattr: stream names may contain colons
commitfe55c9494b415a22e7de88c0190f9c3fccc2b1ea
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 16:09:40 +0000 (17 18:09 +0200)
treede0ab7a1384a25f655030a3b8adffa3e2758d713
parent977be7b8e242edeccbecb54e9873ffd6b8151e63
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