summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 11:58:24 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:26:09 +0200
commit8a92ae23fe64639c7a19faaacf585f266622c863 (patch)
treeafb30f9de1f88038b85a138538b7d295a63db62d /source3/torture
parent02b092533a3ccdeb43a9b5a6ff7731e2e70e209f (diff)
downloadsamba-8a92ae23fe64639c7a19faaacf585f266622c863.tar.gz
samba-8a92ae23fe64639c7a19faaacf585f266622c863.tar.bz2
samba-8a92ae23fe64639c7a19faaacf585f266622c863.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 4d747d2c42..69287459c6 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4150,7 +4150,8 @@ static bool run_deletetest(int dummy)
goto fail;
}
- if (!NT_STATUS_IS_OK(cli_nt_delete_on_close(cli1, fnum1, false))) {
+ status = cli_nt_delete_on_close(cli1, fnum1, false);
+ if (!NT_STATUS_IS_OK(status)) {
printf("[7] unsetting delete_on_close on file failed !\n");
correct = False;
goto fail;