mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r26103: Leave streams around to unlink
Add test case for stream name case insensitity
This commit is contained in:
parent
1ecb4ec01b
commit
d81bb50e10
@ -261,6 +261,8 @@ static bool test_stream_io(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname, "Stream One:$DATA", "test MORE DATA ");
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname, "Stream One:", NULL);
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream", "SECOND STREAM");
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname,
|
||||
"SECOND STREAM:$DATA", "SECOND STREAM");
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream:$DATA", "SECOND STREAM");
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream:", NULL);
|
||||
ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream:$FOO", NULL);
|
||||
@ -290,6 +292,16 @@ static bool test_stream_io(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
|
||||
|
||||
check_stream_list(cli, fname, 1, one);
|
||||
|
||||
io.ntcreatex.in.open_disposition = NTCREATEX_DISP_CREATE;
|
||||
io.ntcreatex.in.fname = sname1;
|
||||
status = smb_raw_open(cli->tree, mem_ctx, &io);
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
smbcli_close(cli->tree, io.ntcreatex.out.file.fnum);
|
||||
io.ntcreatex.in.fname = sname2;
|
||||
status = smb_raw_open(cli->tree, mem_ctx, &io);
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
smbcli_close(cli->tree, io.ntcreatex.out.file.fnum);
|
||||
|
||||
printf("(%s) deleting file\n", __location__);
|
||||
status = smbcli_unlink(cli->tree, fname);
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
|
Loading…
Reference in New Issue
Block a user