diff options
author | Jeremy Allison <jra@samba.org> | 2008-09-09 21:24:34 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-09-09 21:24:34 -0700 |
commit | bc731db85423a1f2d8dd8d205c702e49ea9347f3 (patch) | |
tree | 807e3f8b1c04dfe8cfb0acaa8c0c78411acf4713 /source4 | |
parent | ce288824bb4a095c5020449a79eb83fad81e8480 (diff) | |
download | samba-bc731db85423a1f2d8dd8d205c702e49ea9347f3.tar.gz samba-bc731db85423a1f2d8dd8d205c702e49ea9347f3.tar.bz2 samba-bc731db85423a1f2d8dd8d205c702e49ea9347f3.zip |
A truncate write must be a smbcli_smbwrite, not a
smbcli_write.
Jeremy.
(This used to be commit 8cebd4d36c862dcdc6551dc6bf4dda2342dfede7)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/basic/delaywrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/basic/delaywrite.c b/source4/torture/basic/delaywrite.c index 70560235ea..13319681bd 100644 --- a/source4/torture/basic/delaywrite.c +++ b/source4/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; |