[jcifs] SmbFile.renameTo and ssnLimit=1
Stéphane Bond
stephane.bond at crim.ca
Wed Nov 1 15:57:58 GMT 2006
Yes, it works !
Thanks for your help.
Stephane
Michael B Allen wrote:
> On Fri, 27 Oct 2006 12:04:20 -0400
> Stéphane Bond <stephane.bond at crim.ca> wrote:
>
>
>> We use jcifs with "jcifs.smb.client.ssnLimit=1" to avoid multithreading
>> problems.
>>
>> As discussed in a previous message, using this option broke the
>> SmbFile.renameTo method.
>>
>> http://lists.samba.org/archive/jcifs/2006-May/006129.html
>>
>> Does somebody have a patch to fix that?
>>
>
> You could try just adding an equals method to src/jcifs/smb/SmbTree.java
> something like:
>
> boolean equals(Object obj) {
> if (obj instanceof SmbTree) {
> SmbTree tree = (SmbTree)obj;
> return matches(tree.share, tree.service);
> }
> return false;
> }
>
> and then change the if( tree != dest.tree ) { to if(
> !tree.equals(dest.tree) ) { in the code mentioned in the said message.
>
> If it works, let us know.
>
> Otherwise, it's still on The List (along with about 50 other things).
>
> Mike
>
>
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs
mailing list