summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-09-26 10:05:40 -0700
committerRalph Boehme <slow@samba.org>2019-10-02 08:01:40 +0000
commit091e3fdab61217251de1cf5111f070ff295d1649 (patch)
tree6eabf1ffbf00fd20707985762f885f602c5859c0 /source3/include
parent780a8dcba998471bb154e8bae4391786b793e332 (diff)
downloadsamba-091e3fdab61217251de1cf5111f070ff295d1649.tar.gz
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>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 0d02f38fc8b..91a7c00fef2 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -985,6 +985,7 @@ struct smb_filename *cp_smb_filename_nostream(TALLOC_CTX *mem_ctx,
const struct smb_filename *in);
bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname);
bool is_ntfs_default_stream_smb_fname(const struct smb_filename *smb_fname);
+bool is_named_stream(const struct smb_filename *smb_fname);
bool is_invalid_windows_ea_name(const char *name);
bool ea_list_has_invalid_name(struct ea_list *ea_list);
bool split_stream_filename(TALLOC_CTX *ctx,