Added one more test for "dirname\."
authorJeremy Allison <jra@samba.org>
Fri, 2 Apr 2004 18:59:38 +0000 (18:59 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 2 Apr 2004 18:59:38 +0000 (18:59 +0000)
Jeremy.
(This used to be commit a7ca9620d50aa33e7125d280bc096f1a42438141)

source4/torture/raw/chkpath.c

index 72ddf3b5a2eed28d65c0670e79f37b8cf8e2623b..1b24f1c02f06a421ec4754d29bb8331f139c269a 100644 (file)
@@ -95,6 +95,11 @@ static BOOL test_chkpath(struct cli_state *cli, TALLOC_CTX *mem_ctx)
        status = smb_raw_chkpath(cli->tree, &io);
        CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_SYNTAX_BAD);
 
+       io.in.path = BASEDIR "\\.";
+       printf("testing %s\n", io.in.path);
+       status = smb_raw_chkpath(cli->tree, &io);
+       CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID);
+
        io.in.path = BASEDIR "\\..";
        printf("testing %s\n", io.in.path);
        status = smb_raw_chkpath(cli->tree, &io);