s3: smbd: In filename_split_lcomp() ensure we never return a streamname if posix...
authorJeremy Allison <jra@samba.org>
Wed, 27 Jul 2022 23:52:40 +0000 (16:52 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Jul 2022 15:38:38 +0000 (15:38 +0000)
POSIX has no streams, even on the root of a directory.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/filename.c

index 0f9921b62fac098960e05c2a35ba9a06d4202232..5f90f378482ba04313698a81bb9adc1486265a11 100644 (file)
@@ -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
                 */