1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3-client/clitar.c: replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Björn Baumbach 2011-07-22 12:35:03 +02:00 committed by Stefan Metzmacher
parent 6d695749c7
commit bffc521a8a

View File

@ -616,7 +616,7 @@ static NTSTATUS do_atar(const char *rname_in, char *lname,
bool shallitime=True;
char *data = NULL;
int read_size = 65520;
int datalen=0;
size_t datalen=0;
char *rname = NULL;
TALLOC_CTX *ctx = talloc_stackframe();
NTSTATUS status = NT_STATUS_OK;
@ -693,10 +693,9 @@ static NTSTATUS do_atar(const char *rname_in, char *lname,
DEBUG(3,("nread=%.0f\n",(double)nread));
datalen = cli_read_old(cli, fnum, data, nread, read_size);
if (datalen == -1) {
status = cli_nt_error(cli);
status = cli_read(cli, fnum, data, nread,
read_size, &datalen);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("Error reading file %s : %s\n",
rname, nt_errstr(status)));
break;