mirror of
https://github.com/samba-team/samba.git
synced 2025-09-14 21:44:19 +03:00
Added one more test for "dirname\."
Jeremy.
(This used to be commit a7ca9620d5
)
This commit is contained in:
@@ -95,6 +95,11 @@ static BOOL test_chkpath(struct cli_state *cli, TALLOC_CTX *mem_ctx)
|
|||||||
status = smb_raw_chkpath(cli->tree, &io);
|
status = smb_raw_chkpath(cli->tree, &io);
|
||||||
CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_SYNTAX_BAD);
|
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 "\\..";
|
io.in.path = BASEDIR "\\..";
|
||||||
printf("testing %s\n", io.in.path);
|
printf("testing %s\n", io.in.path);
|
||||||
status = smb_raw_chkpath(cli->tree, &io);
|
status = smb_raw_chkpath(cli->tree, &io);
|
||||||
|
Reference in New Issue
Block a user