diff options
author | Ralph Boehme <slow@samba.org> | 2019-09-25 10:15:27 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-10-16 19:25:12 +0000 |
commit | 2ef4d9883f4b11098e8666143192840a3b574b30 (patch) | |
tree | f9abd4a37e6441c0c747c92b7da036de0e1fe493 | |
parent | 2da0f65cd911e439d4c033f999a7549bc3610714 (diff) | |
download | samba-2ef4d9883f4b11098e8666143192840a3b574b30.tar.gz |
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 6c1647ca7a2f68825c34e9ccc18b86ef911e14ac)
-rw-r--r-- | source3/lib/filename_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |