diff options
-rw-r--r-- | source3/torture/torture.c | 4 |
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 { |