diff options
author | Björn Baumbach <bb@sernet.de> | 2011-07-22 12:19:34 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-23 09:18:25 +0200 |
commit | 963aa9856c9214815cbe6841db0e83d9d5f000eb (patch) | |
tree | bacfe283d1d42c1534dbe899c73044585742b9fa | |
parent | 995978ae965ecb922c7a579d4e84836cfb937955 (diff) | |
download | samba-963aa9856c9214815cbe6841db0e83d9d5f000eb.tar.gz samba-963aa9856c9214815cbe6841db0e83d9d5f000eb.tar.bz2 samba-963aa9856c9214815cbe6841db0e83d9d5f000eb.zip |
s3-torture: run_fdsesstest(): replace cli_read_old() with cli_read()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/torture/torture.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index f9ce0cc794..c135ed7c35 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2848,10 +2848,10 @@ static bool run_fdsesstest(int dummy) saved_vuid = cli_state_get_uid(cli); cli_state_set_uid(cli, new_vuid); - if (cli_read_old(cli, fnum1, buf, 0, 13) == 13) { - printf("read succeeded with different vuid! nasty security hole [%s]\n", - buf); - ret = False; + if (test_cli_read(cli, fnum1, buf, 0, 13, NULL, 13)) { + printf("read succeeded with different vuid! " + "nasty security hole [%s]\n", buf); + ret = false; } /* Try to open a file with different vuid, samba cnum. */ if (NT_STATUS_IS_OK(cli_open(cli, fname1, O_RDWR|O_CREAT|O_EXCL, DENY_NONE, &fnum2))) { @@ -2869,10 +2869,9 @@ static bool run_fdsesstest(int dummy) /* Try with same vuid, different cnum. */ cli_state_set_tid(cli, new_cnum); - if (cli_read_old(cli, fnum1, buf, 0, 13) == 13) { - printf("read succeeded with different cnum![%s]\n", - buf); - ret = False; + if (test_cli_read(cli, fnum1, buf, 0, 13, NULL, 13)) { + printf("read succeeded with different cnum![%s]\n", buf); + ret = false; } cli_state_set_tid(cli, saved_cnum); |