summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-22 12:12:42 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-23 09:18:24 +0200
commit995978ae965ecb922c7a579d4e84836cfb937955 (patch)
tree585a84ed36e35903ab0c889dc8bf9daf9825fd8c /source3/torture
parentcfec548aa0cdd726911efb7fd5c501e464dfc3e0 (diff)
downloadsamba-995978ae965ecb922c7a579d4e84836cfb937955.tar.gz
samba-995978ae965ecb922c7a579d4e84836cfb937955.tar.bz2
samba-995978ae965ecb922c7a579d4e84836cfb937955.zip
s3-torture: run_fdpasstest(): replace cli_read_old() with cli_read()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 2b78014d65..f9ce0cc794 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2784,10 +2784,9 @@ static bool run_fdpasstest(int dummy)
cli_state_set_tid(cli2, cli_state_get_tid(cli1));
cli_setpid(cli2, cli_getpid(cli1));
- if (cli_read_old(cli2, fnum1, buf, 0, 13) == 13) {
- printf("read succeeded! nasty security hole [%s]\n",
- buf);
- return False;
+ if (test_cli_read(cli2, fnum1, buf, 0, 13, NULL, 13)) {
+ printf("read succeeded! nasty security hole [%s]\n", buf);
+ return false;
}
cli_close(cli1, fnum1);