]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:torture:delete: untangle function call from result check
authorMichael Adam <obnox@samba.org>
Wed, 8 Aug 2012 09:57:03 +0000 (11:57 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 13:26:06 +0000 (15:26 +0200)
source3/torture/torture.c

index aa034410f198c5990d23d47d82ea4e77b564e74c..b1d670e04db40be3744ac58536eee5c4a67d46bf 100644 (file)
@@ -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;