1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r3188: tidy up the rename test a bit more

(This used to be commit 3f60775916)
This commit is contained in:
Andrew Tridgell 2004-10-25 04:24:06 +00:00 committed by Gerald (Jerry) Carter
parent db9b96d8e5
commit ced8ad3d04

View File

@ -41,8 +41,11 @@ BOOL torture_test_rename(int dummy)
smbcli_unlink(cli1->tree, fname);
smbcli_unlink(cli1->tree, fname1);
fnum1 = smbcli_nt_create_full(cli1->tree, fname, 0, GENERIC_RIGHTS_FILE_READ, FILE_ATTRIBUTE_NORMAL,
NTCREATEX_SHARE_ACCESS_READ, NTCREATEX_DISP_OVERWRITE_IF, 0, 0);
fnum1 = smbcli_nt_create_full(cli1->tree, fname, 0,
GENERIC_RIGHTS_FILE_READ,
FILE_ATTRIBUTE_NORMAL,
NTCREATEX_SHARE_ACCESS_READ,
NTCREATEX_DISP_OVERWRITE_IF, 0, 0);
if (fnum1 == -1) {
printf("(%s) First open failed - %s\n",
@ -93,8 +96,11 @@ BOOL torture_test_rename(int dummy)
smbcli_unlink(cli1->tree, fname);
smbcli_unlink(cli1->tree, fname1);
fnum1 = smbcli_nt_create_full(cli1->tree, fname, 0, STD_RIGHT_READ_CONTROL_ACCESS, FILE_ATTRIBUTE_NORMAL,
NTCREATEX_SHARE_ACCESS_NONE, NTCREATEX_DISP_OVERWRITE_IF, 0, 0);
fnum1 = smbcli_nt_create_full(cli1->tree, fname, 0,
STD_RIGHT_READ_CONTROL_ACCESS,
FILE_ATTRIBUTE_NORMAL,
NTCREATEX_SHARE_ACCESS_NONE,
NTCREATEX_DISP_OVERWRITE_IF, 0, 0);
if (fnum1 == -1) {
printf("(%s) Third open failed - %s\n", __location__, smbcli_errstr(cli1->tree));