summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-25 04:24:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:38 -0500
commitced8ad3d04df4de84c0d88c2a427a1fa35f0c046 (patch)
tree9c4e009e2e955bb4bed31e03f4d34151912a8ac5 /source4/torture/basic
parentdb9b96d8e59b38b5900f4bcf1193c2110232137e (diff)
downloadsamba-ced8ad3d04df4de84c0d88c2a427a1fa35f0c046.tar.gz
samba-ced8ad3d04df4de84c0d88c2a427a1fa35f0c046.tar.bz2
samba-ced8ad3d04df4de84c0d88c2a427a1fa35f0c046.zip
r3188: tidy up the rename test a bit more
(This used to be commit 3f6077591646d70ab544fb44a93333c05338dbfa)
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/rename.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source4/torture/basic/rename.c b/source4/torture/basic/rename.c
index 96fef82983..f9caea0665 100644
--- a/source4/torture/basic/rename.c
+++ b/source4/torture/basic/rename.c
@@ -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));