A truncate write must be a smbcli_smbwrite, not a
authorJeremy Allison <jra@samba.org>
Wed, 10 Sep 2008 04:24:34 +0000 (21:24 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 10 Sep 2008 04:24:34 +0000 (21:24 -0700)
smbcli_write.
Jeremy.

source/torture/basic/delaywrite.c

index 70560235ea22f66b69d22bc8d1ded567d2a15040..13319681bd2c5303b6eff2d6b31942b07aa7ad61 100644 (file)
@@ -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;