summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 2243fe6c0b..ab42c26b41 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2787,7 +2787,9 @@ static bool run_unlinktest(int dummy)
return False;
}
- if (NT_STATUS_IS_OK(cli_unlink(cli, fname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN))) {
+ status = cli_unlink(cli, fname,
+ FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
+ if (NT_STATUS_IS_OK(status)) {
printf("error: server allowed unlink on an open file\n");
correct = False;
} else {