From: Ralph Boehme Date: Wed, 25 Sep 2019 18:19:26 +0000 (-0700) Subject: s3:lib: implement logic directly in is_ntfs_default_stream_smb_fname() X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=3f8bc1ce3e094f943363921c46803fd5ec9f73bb;p=metze%2Fsamba%2Fwip.git 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 --- diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 750c0bb83121..ee49ae5ff8ca 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; }