summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-09-25 11:19:26 -0700
committerKarolin Seeger <kseeger@samba.org>2019-10-16 19:25:12 +0000
commit42bc7f28e1a1662f73bce606dbb3b862e399a40d (patch)
tree0e76bfe104c6ab837fe631a196cb0cb5c2fbca57
parent23b4938c18a4f51609ca588878f935ef1eb6d9a2 (diff)
downloadsamba-42bc7f28e1a1662f73bce606dbb3b862e399a40d.tar.gz
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 <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 3f8bc1ce3e094f943363921c46803fd5ec9f73bb)
-rw-r--r--source3/lib/filename_util.c4
1 files changed, 3 insertions, 1 deletions
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;
}