From 4c12490730de84d63bf654f97cbc17ffcb1d25f5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 2 Apr 2004 18:59:38 +0000 Subject: Added one more test for "dirname\." Jeremy. (This used to be commit a7ca9620d50aa33e7125d280bc096f1a42438141) --- source4/torture/raw/chkpath.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture/raw/chkpath.c') diff --git a/source4/torture/raw/chkpath.c b/source4/torture/raw/chkpath.c index 72ddf3b5a2..1b24f1c02f 100644 --- a/source4/torture/raw/chkpath.c +++ b/source4/torture/raw/chkpath.c @@ -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); -- cgit