From: Michael Adam Date: Wed, 8 Aug 2012 09:57:03 +0000 (+0200) Subject: s3:torture:delete: untangle function call from result check X-Git-Tag: samba-4.0.0beta6~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bc7c77cd88b5fc96427584da020a3abe930f214;p=thirdparty%2Fsamba.git s3:torture:delete: untangle function call from result check --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index aa034410f19..b1d670e04db 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;