vfs_streams_xattr: stream names may contain colons
authorRalph Boehme <slow@samba.org>
Sat, 9 May 2015 13:02:03 +0000 (15:02 +0200)
committerRalph Böhme <slow@samba.org>
Fri, 7 Aug 2015 07:52:12 +0000 (09:52 +0200)
commitfb9a64ea37dd4b0cd754fe6d421417a4c8ccbc57
tree113ef3bf8c4456b35e243fc847c539bbb6c2e952
parenteba12122ccce602aede7756b8f91d34fe927d2c0
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>
source3/modules/vfs_streams_xattr.c