summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-04-02 18:59:38 +0000
committerJeremy Allison <jra@samba.org>2004-04-02 18:59:38 +0000
commit4c12490730de84d63bf654f97cbc17ffcb1d25f5 (patch)
tree8e5270e78fdacaad09a031bc7f7c4d27fff172eb /source4/torture/raw
parent05d10eba1f6142219638bf9b859d07b5bb175f72 (diff)
downloadsamba-4c12490730de84d63bf654f97cbc17ffcb1d25f5.tar.gz
samba-4c12490730de84d63bf654f97cbc17ffcb1d25f5.tar.bz2
samba-4c12490730de84d63bf654f97cbc17ffcb1d25f5.zip
Added one more test for "dirname\."
Jeremy. (This used to be commit a7ca9620d50aa33e7125d280bc096f1a42438141)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/chkpath.c5
1 files changed, 5 insertions, 0 deletions
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);