s3:lib: add is_named_stream()
authorRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:05:40 +0000 (10:05 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 Oct 2019 08:01:40 +0000 (08:01 +0000)
commit091e3fdab61217251de1cf5111f070ff295d1649
tree6eabf1ffbf00fd20707985762f885f602c5859c0
parent780a8dcba998471bb154e8bae4391786b793e332
s3:lib: add is_named_stream()

Add a new utility functions that checks whether a struct smb_filename points to
a real named stream, excluding the default stream "::$DATA".

  foo           -> false
  foo::$DATA    -> false
  foo:bar       -> true
  foo:bar:$DATA -> true

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/filename_util.c