[jcifs] Re: SMB_COM_CLOSE does work

Christopher R. Hertel crh at ubiqx.mn.org
Thu Aug 22 05:34:55 EST 2002


On Wed, Aug 21, 2002 at 03:27:55PM -0400, Michael B. Allen wrote:
:
> It's beginning to look like I'm having a conversation with myself.

I'll talk to you.  ;)

> andy chernow <achernow at yahoo.com> wrote:
:
> > SmbFileOutputStream[jcifs_0.7.0b2] Patch
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > public void close() throws IOException
> > {
> >    close(0L);
> > }

The value 0L is correct per the documentation.  Unfortunately, it is not 
correct per what Windows clients actually do.  They use -1L.  Some server 
implementations may not recognize the 0 correctly (Windows compatibility 
being the measure of correctness).

Chris -)-----

-- 
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the jcifs mailing list