[jcifs] File locking redux
Michael B. Allen
mballen at erols.com
Sat Sep 29 09:48:14 EST 2001
On Thu, Sep 27, 2001 at 04:23:07PM -0700, Rob Wygand wrote:
> SmbFileInputStream. This fails with "ERRDOS/ERRbadshare: The file is
> being used by another process"
I made a terribly wrong assumption about the meaning of DesiredAccess
flags. I will have to review this code to assess what may be affected. In
the mean time perhaps you can try out the obvious fix for this. Change the
line 125 in jcifs/smb/SmbComNTCreateAndX.java to allow write and delete:
124 // shareAccess
125 shareAccess = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
Thanks,
Mike
More information about the jcifs
mailing list