CVS update: samba/source/include

Luke Kenneth Casson Leighton lkcl at switchboard.net
Thu Feb 25 06:49:50 EST 1999


On Wed, 24 Feb 1999, Matt Chapman wrote:

> Luke Kenneth Casson Leighton wrote:
> 
> > > * Return ERRDOS/ERRmoredata on extra data instead of
> > > STATUS_BUFFER_OVERFLOW for Win95's benefit. On a named pipe this results
> > > in an SMBreadX as usual.
> >
> > don't do this.  if you do, only do so if 32 bit status codes are
> > *not* negotiated.
> 
> Okay, changing to:

pretty wicked.

if you can put this in a function, i think there may be other places it's
in.  oh - ah.  this is quite specific
 
>     if (global_client_caps & CAP_STATUS32)

if (IS_BITS_SET_ALL(global_client_caps, CAP_STATUS32))
....

>     {
>             /* issue a buffer size warning.  on a DCE/RPC pipe, expect an
> SMBreadX... */
>             SIVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
>             SIVAL(outbuf, smb_rcls, 0x80000005); /* STATUS_BUFFER_OVERFLOW */
>     } else {
>             SCVAL(outbuf, smb_rcls, ERRDOS);
>             SSVAL(outbuf, smb_err, ERRmoredata);
>     }
> 
>     Matt
> 
> 
> --
> Matt Chapman
> m.chapman at student.unsw.edu.au
> 
> 
> 
> 
> 

<a href="mailto:lkcl at samba.anu.edu.au" > Luke Kenneth Casson Leighton  </a>
<a href="http://mailhost.cb1.com/~lkcl"> Samba and Network Development </a>
<a href="http://www.samba.co.uk"       > Samba and Network Consultancy </a>



More information about the samba-cvs mailing list