s3:lib: add is_named_stream()
authorRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:05:40 +0000 (10:05 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 16 Oct 2019 19:25:13 +0000 (19:25 +0000)
commit8f44a25e2a630a28d908392603eae5987ec4e91e
treee81ff6e0d1ad33dd65d3fe6b8e086b5ccaef1e09
parentc48a5c6b8c995595a519e9069e3efbe24291f190
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>
(cherry picked from commit 091e3fdab61217251de1cf5111f070ff295d1649)
source3/include/proto.h
source3/lib/filename_util.c