s3:torture:delete: untangle function call from result check
authorMichael Adam <obnox@samba.org>
Wed, 8 Aug 2012 09:56:17 +0000 (11:56 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 13:25:19 +0000 (15:25 +0200)
source3/torture/torture.c

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