git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfec548
)
s3-torture: run_fdpasstest(): replace cli_read_old() with cli_read()
author
Björn Baumbach
<bb@sernet.de>
Fri, 22 Jul 2011 10:12:42 +0000
(12:12 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sat, 23 Jul 2011 07:18:24 +0000
(09:18 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/torture/torture.c
patch
|
blob
|
history
diff --git
a/source3/torture/torture.c
b/source3/torture/torture.c
index 2b78014d65424488ec0c892980bade4d6a84584b..f9ce0cc7945db2958d8e8a410d213d34c8a360c4 100644
(file)
--- 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);