From: Ralph Boehme Date: Wed, 25 Sep 2019 17:15:27 +0000 (-0700) Subject: s3:lib: assert stream_name is NULL for POSIX paths X-Git-Tag: talloc-2.3.1~531 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1647ca7a2f68825c34e9ccc18b86ef911e14ac;p=thirdparty%2Fsamba.git s3:lib: assert stream_name is NULL for POSIX paths 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 6bf29c2b0c9..165adb116b5 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -250,7 +250,7 @@ bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname) } if (smb_fname->flags & SMB_FILENAME_POSIX_PATH) { - return false; + SMB_ASSERT(smb_fname->stream_name == NULL); } if (smb_fname->stream_name == NULL) {