summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-07-02 21:05:19 +0000
committerJeremy Allison <jra@samba.org>2006-07-02 21:05:19 +0000
commitff282d2bedb900ba8d87fb57a58f1f38816d2f01 (patch)
tree426cd9f305e58d65432f48086a31ff7265d62e23 /source/torture
parent50a11eedef641c169fdb1902e008d60cfdfef394 (diff)
downloadsamba-ff282d2bedb900ba8d87fb57a58f1f38816d2f01.tar.gz
samba-ff282d2bedb900ba8d87fb57a58f1f38816d2f01.tar.xz
samba-ff282d2bedb900ba8d87fb57a58f1f38816d2f01.zip
r16761: Added additional NTSTATUS and DOS error test for "."
This confirms a theory of mine... Added RAW-SAMBA3BADPATH to selectable options. Jeremy.
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/raw/raw.c1
-rw-r--r--source/torture/raw/samba3misc.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/source/torture/raw/raw.c b/source/torture/raw/raw.c
index feff72d4e84..e2fdf67ca02 100644
--- a/source/torture/raw/raw.c
+++ b/source/torture/raw/raw.c
@@ -54,6 +54,7 @@ NTSTATUS torture_raw_init(void)
register_torture_op("RAW-COMPOSITE", torture_raw_composite);
register_torture_op("RAW-SAMBA3HIDE", torture_samba3_hide);
register_torture_op("RAW-SAMBA3CHECKFSP", torture_samba3_checkfsp);
+ register_torture_op("RAW-SAMBA3BADPATH", torture_samba3_badpath);
register_torture_op("SCAN-EAMAX", torture_max_eas);
return NT_STATUS_OK;
diff --git a/source/torture/raw/samba3misc.c b/source/torture/raw/samba3misc.c
index 8b2fbd99a2e..e64aefa81e9 100644
--- a/source/torture/raw/samba3misc.c
+++ b/source/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");