r16761: Added additional NTSTATUS and DOS error test for "."
authorJeremy Allison <jra@samba.org>
Sun, 2 Jul 2006 21:05:19 +0000 (21:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:44 +0000 (14:09 -0500)
This confirms a theory of mine...
Added RAW-SAMBA3BADPATH to selectable options.
Jeremy.
(This used to be commit 4cd7a8ed621d6215202d4b60d183a013a221581b)

source4/torture/raw/raw.c
source4/torture/raw/samba3misc.c

index feff72d4e8429af58803c49ae3cf530912051b90..e2fdf67ca02d91507234a1db0dd4ced97348a104 100644 (file)
@@ -54,6 +54,7 @@ NTSTATUS torture_raw_init(void)
        register_torture_op("RAW-COMPOSITE", torture_raw_composite);
        register_torture_op("RAW-SAMBA3HIDE", torture_samba3_hide);
        register_torture_op("RAW-SAMBA3CHECKFSP", torture_samba3_checkfsp);
+       register_torture_op("RAW-SAMBA3BADPATH", torture_samba3_badpath);
        register_torture_op("SCAN-EAMAX", torture_max_eas);
 
        return NT_STATUS_OK;
index 8b2fbd99a2e4b8284cff1b82a4ca86cd56095ad1..e64aefa81e96ff8588d2f7f89b9a4a4eac4fec27 100644 (file)
@@ -253,6 +253,11 @@ BOOL torture_samba3_badpath(struct torture_context *torture)
        status = smbcli_chkpath(cli_dos->tree, "..");
        CHECK_STATUS(status, NT_STATUS_DOS(ERRDOS, ERRinvalidpath));
 
+       status = smbcli_chkpath(cli_nt->tree, ".");
+       CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID);
+       status = smbcli_chkpath(cli_dos->tree, ".");
+       CHECK_STATUS(status, NT_STATUS_DOS(ERRDOS, ERRbadpath));
+
        status = smbcli_chkpath(cli_nt->tree, "\t");
        CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID);
        status = smbcli_chkpath(cli_dos->tree, "\t");