summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 11:57:03 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:26:06 +0200
commit5bc7c77cd88b5fc96427584da020a3abe930f214 (patch)
treeef85b54f49e80f634c72070b4348d2b1f5d854c5 /source3/torture
parentb5e9378e2881745a0145c74bfa5f2f17591ac99c (diff)
downloadsamba-5bc7c77cd88b5fc96427584da020a3abe930f214.tar.gz
samba-5bc7c77cd88b5fc96427584da020a3abe930f214.tar.bz2
samba-5bc7c77cd88b5fc96427584da020a3abe930f214.zip
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index aa034410f1..b1d670e04d 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4113,7 +4113,8 @@ static bool run_deletetest(int dummy)
/* This should fail - only allowed on NT opens with DELETE access. */
- if (NT_STATUS_IS_OK(cli_nt_delete_on_close(cli1, fnum1, true))) {
+ status = cli_nt_delete_on_close(cli1, fnum1, true);
+ if (NT_STATUS_IS_OK(status)) {
printf("[6] setting delete_on_close on file with no delete access succeeded - should fail !\n");
correct = False;
goto fail;