From: Jeremy Allison Date: Wed, 27 Jul 2022 23:52:40 +0000 (-0700) Subject: s3: smbd: In filename_split_lcomp() ensure we never return a streamname if posix... X-Git-Tag: samba-4.17.0rc1~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be8ac8df178556957d3d20d309b0f79cb1df6b34;p=thirdparty%2Fsamba.git s3: smbd: In filename_split_lcomp() ensure we never return a streamname if posix is set. POSIX has no streams, even on the root of a directory. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 0f9921b62fa..5f90f378482 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -2410,7 +2410,7 @@ static bool filename_split_lcomp( return false; } - if (name_in[0] == ':') { + if (!posix && (name_in[0] == ':')) { /* * Special case for stream on root directory */