From 528399a8a2a0903e6b8a9de0e3ac07f1f0b5f21b Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 4 Jan 2000 07:52:21 +0000 Subject: oops, must use read_data() not read(), as read() may only provide part of the data stream. read_data() is a wrapper to guarantee receiving exactly the requested number of bytes. (This used to be commit 90c27b7bffa9b2121eaed0e07931830c3ba308d7) --- source3/rpc_server/srv_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 98c3e90c06..49733b0767 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -68,7 +68,7 @@ BOOL readwrite_pipe(pipes_struct *p, char *data, int len, { return False; } - (*rlen) = read(p->m->fd, (*rdata), (*rlen)); + (*rlen) = read_data(p->m->fd, (*rdata), (*rlen)); if ((*rlen) < 0) { return False; @@ -115,6 +115,6 @@ int read_pipe(pipes_struct *p, char *data, int n) return -1; } - return read(p->m->fd, data, n); + return read_data(p->m->fd, data, n); } -- cgit