summaryrefslogtreecommitdiff
path: root/source4/torture/raw/samba3misc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-07-02 21:05:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:44 -0500
commit5517249fadfced980db5eb47bf04ece5edcb6c53 (patch)
tree5ea690994c9aaa28b448881dfceaf0f804bdf195 /source4/torture/raw/samba3misc.c
parent81d09a7f2ede7e1a25a14dbf942a5850d4f97bf0 (diff)
downloadsamba-5517249fadfced980db5eb47bf04ece5edcb6c53.tar.gz
samba-5517249fadfced980db5eb47bf04ece5edcb6c53.tar.bz2
samba-5517249fadfced980db5eb47bf04ece5edcb6c53.zip
r16761: Added additional NTSTATUS and DOS error test for "."
This confirms a theory of mine... Added RAW-SAMBA3BADPATH to selectable options. Jeremy. (This used to be commit 4cd7a8ed621d6215202d4b60d183a013a221581b)
Diffstat (limited to 'source4/torture/raw/samba3misc.c')
-rw-r--r--source4/torture/raw/samba3misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/raw/samba3misc.c b/source4/torture/raw/samba3misc.c
index 8b2fbd99a2..e64aefa81e 100644
--- a/source4/torture/raw/samba3misc.c
+++ b/source4/torture/raw/samba3misc.c
@@ -253,6 +253,11 @@ BOOL torture_samba3_badpath(struct torture_context *torture)
status = smbcli_chkpath(cli_dos->tree, "..");
CHECK_STATUS(status, NT_STATUS_DOS(ERRDOS, ERRinvalidpath));
+ status = smbcli_chkpath(cli_nt->tree, ".");
+ CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID);
+ status = smbcli_chkpath(cli_dos->tree, ".");
+ CHECK_STATUS(status, NT_STATUS_DOS(ERRDOS, ERRbadpath));
+
status = smbcli_chkpath(cli_nt->tree, "\t");
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID);
status = smbcli_chkpath(cli_dos->tree, "\t");