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 | 8cebd4d36c862dcdc6551dc6bf4dda2342dfede7 (patch) | |
tree | eb8de98465763796f6335a3948661b948d444ded | |
parent | 6ad94d10f79f206fcdeb23cf71595e38c7a77855 (diff) | |
download | samba-8cebd4d36c862dcdc6551dc6bf4dda2342dfede7.tar.gz |
A truncate write must be a smbcli_smbwrite, not a
smbcli_write.
Jeremy.
-rw-r--r-- | source/torture/basic/delaywrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/torture/basic/delaywrite.c b/source/torture/basic/delaywrite.c index 70560235ea2..13319681bd2 100644 --- 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; |