git.samba.org
/
metze
/
samba
/
wb-ndr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad94d1
)
A truncate write must be a smbcli_smbwrite, not a
author
Jeremy Allison
<jra@samba.org>
Wed, 10 Sep 2008 04:24:34 +0000
(21:24 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 10 Sep 2008 04:24:34 +0000
(21:24 -0700)
smbcli_write.
Jeremy.
source/torture/basic/delaywrite.c
patch
|
blob
|
history
diff --git
a/source/torture/basic/delaywrite.c
b/source/torture/basic/delaywrite.c
index 70560235ea22f66b69d22bc8d1ded567d2a15040..13319681bd2c5303b6eff2d6b31942b07aa7ad61 100644
(file)
--- a/
source/torture/basic/delaywrite.c
+++ b/
source/torture/basic/delaywrite.c
@@
-2602,7
+2602,7
@@
static bool test_delayed_write_update5b(struct torture_context *tctx,
while (!timeval_expired(&end)) {
/* do a write */
torture_comment(tctx, "Do a truncate write on the file handle\n");
- written = smbcli_
write(cli->tree, fnum1, 0, "x", 0
, 0);
+ written = smbcli_
smbwrite(cli->tree, fnum1, "x", 1024
, 0);
if (written != 0) {
torture_result(tctx, TORTURE_FAIL, __location__": written gave %d - should have been 1", (int)written);
ret = false;