From 3f8bc1ce3e094f943363921c46803fd5ec9f73bb Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 25 Sep 2019 11:19:26 -0700 Subject: [PATCH] s3:lib: implement logic directly in is_ntfs_default_stream_smb_fname() This allows changing the semantics of is_ntfs_stream_smb_fname() in the next commit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14137 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/lib/filename_util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 750c0bb8312..ee49ae5ff8c 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -272,7 +272,9 @@ 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) { - if (!is_ntfs_stream_smb_fname(smb_fname)) { + assert_valid_stream_smb_fname(smb_fname); + + if (smb_fname->stream_name == NULL) { return false; } -- 2.47.3