summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 11:56:17 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:25:19 +0200
commitb5e9378e2881745a0145c74bfa5f2f17591ac99c (patch)
tree08058dde2b71dc7cc844fa9f7b45a03a8d90aca1 /source3
parent361429d02ffc1ce90cf5b5e246d2fc0bb765520b (diff)
downloadsamba-b5e9378e2881745a0145c74bfa5f2f17591ac99c.tar.gz
samba-b5e9378e2881745a0145c74bfa5f2f17591ac99c.tar.bz2
samba-b5e9378e2881745a0145c74bfa5f2f17591ac99c.zip
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3')
-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 692ae675a4..aa034410f1 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4080,7 +4080,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("[5] setting delete_on_close on OpenX file succeeded - should fail !\n");
correct = False;
goto fail;