From 2b2eec4cfc0684009e135331f9e4e693a5def508 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 16 May 2007 01:36:23 +0000 Subject: r22925: Sync read_and_X with 3.0.26 code (use setup_readX_header()). Jeremy. (This used to be commit e1052c0e3d50473a9ded6092b6a85d78590a00e7) --- source3/smbd/reply.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source3') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 51ac95caf9..24fff5da52 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2666,12 +2666,7 @@ int send_file_readX(connection_struct *conn, char *inbuf,char *outbuf,int length return(UNIXERROR(ERRDOS,ERRnoaccess)); } - outsize = set_message(inbuf, outbuf,12,nread,False); - SSVAL(outbuf,smb_vwv2,0xFFFF); /* Remaining - must be -1. */ - SSVAL(outbuf,smb_vwv5,nread); - SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf)); - SSVAL(outbuf,smb_vwv7,((nread >> 16) & 1)); - SSVAL(smb_buf(outbuf),-2,nread); + outsize = setup_readX_header(inbuf, outbuf,nread); DEBUG( 3, ( "send_file_readX fnum=%d max=%d nread=%d\n", fsp->fnum, (int)smb_maxcnt, (int)nread ) ); -- cgit