summaryrefslogtreecommitdiff
path: root/source4/torture/raw/chkpath.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-25 07:01:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:40 -0500
commit925cb13fcd5f0c35ab4d2b5da5ab290066ed57de (patch)
tree4f8d171aaf6fd8ea3ce027f1dfd08403773bf035 /source4/torture/raw/chkpath.c
parent7780bec7b4169cb2a78ceda16e6dc9e00dcb0b0f (diff)
downloadsamba-925cb13fcd5f0c35ab4d2b5da5ab290066ed57de.tar.gz
samba-925cb13fcd5f0c35ab4d2b5da5ab290066ed57de.tar.bz2
samba-925cb13fcd5f0c35ab4d2b5da5ab290066ed57de.zip
r3199: added a couple more test paths to RAW-CHKPATH
(This used to be commit 17f10a39c858a5a6e128f3f827d83687c5ba7d90)
Diffstat (limited to 'source4/torture/raw/chkpath.c')
-rw-r--r--source4/torture/raw/chkpath.c10
1 files changed, 10 insertions, 0 deletions
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);