1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3:torture:delete: untangle function call from result check

This commit is contained in:
Michael Adam 2012-08-08 11:57:03 +02:00
parent b5e9378e28
commit 5bc7c77cd8

View 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;