From 925cb13fcd5f0c35ab4d2b5da5ab290066ed57de Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 25 Oct 2004 07:01:45 +0000 Subject: r3199: added a couple more test paths to RAW-CHKPATH (This used to be commit 17f10a39c858a5a6e128f3f827d83687c5ba7d90) --- source4/torture/raw/chkpath.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/chkpath.c b/source4/torture/raw/chkpath.c index 72ea1a8d75..7749c6194f 100644 --- a/source4/torture/raw/chkpath.c +++ b/source4/torture/raw/chkpath.c @@ -172,6 +172,16 @@ static BOOL test_chkpath(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) status = smb_raw_chkpath(cli->tree, &io); CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND); + io.in.path = "..\\..\\.."; + printf("testing %s\n", io.in.path); + status = smb_raw_chkpath(cli->tree, &io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_SYNTAX_BAD); + + io.in.path = "\\.."; + printf("testing %s\n", io.in.path); + status = smb_raw_chkpath(cli->tree, &io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_SYNTAX_BAD); + io.in.path = "\\.\\\\\\\\\\\\xxx"; printf("testing %s\n", io.in.path); status = smb_raw_chkpath(cli->tree, &io); -- cgit