1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 4cd7a8ed62)
This commit is contained in:
Jeremy Allison 2006-07-02 21:05:19 +00:00 committed by Gerald (Jerry) Carter
parent 81d09a7f2e
commit 5517249fad
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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");