git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
361429d
)
s3:torture:delete: untangle function call from result check
author
Michael Adam
<obnox@samba.org>
Wed, 8 Aug 2012 09:56:17 +0000
(11:56 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 9 Aug 2012 13:25:19 +0000
(15:25 +0200)
source3/torture/torture.c
patch
|
blob
|
history
diff --git
a/source3/torture/torture.c
b/source3/torture/torture.c
index 692ae675a4e4365b337ecd97fdf25c076e6417d2..aa034410f198c5990d23d47d82ea4e77b564e74c 100644
(file)
--- a/
source3/torture/torture.c
+++ b/
source3/torture/torture.c
@@
-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;