]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Fix target handling in raw.chkpath
authorAndreas Schneider <asn@samba.org>
Fri, 17 Jan 2025 12:35:40 +0000 (13:35 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 27 Jan 2025 10:41:40 +0000 (10:41 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/torture/raw/chkpath.c

index 171ddc756c89b169cc150344c3592eb36366f2d0..90559b1d602c17ecc897ba9d59ab3be033e4f6a4 100644 (file)
@@ -95,7 +95,7 @@ static bool test_path_ex(struct smbcli_state *cli, struct torture_context *tctx,
        if (path_expected &&
            (!finfo.name_info.out.fname.s ||
             strcmp(finfo.name_info.out.fname.s, path_expected) != 0)) {
-               if (tctx && torture_setting_bool(tctx, "samba4", false)) {
+               if (tctx && torture_setting_bool(tctx, "samba4-ntvfs", false)) {
                        printf("IGNORE: %-30s => %-20s should be %s\n",
                                path, finfo.name_info.out.fname.s, path_expected);
                        return true;
@@ -304,8 +304,9 @@ static bool test_chkpath_names(struct smbcli_state *cli, struct torture_context
                case '?':/*0x3F*/
                case '|':/*0x7C*/
                        if (i == '/' &&
-                           torture_setting_bool(tctx, "samba3", false)) {
-                               /* samba 3 handles '/' as '\\' */
+                           !torture_setting_bool(tctx, "samba4-ntvfs", false))
+                       {
+                               /* samba fs handles '/' as '\\' */
                                break;
                        }
                        expected = NT_STATUS_OBJECT_NAME_INVALID;