[jcifs] Incorrect canonical path
Dan Diephouse
diephouse at eastnode.com
Tue Aug 13 08:39:50 EST 2002
Hi,
I found a bug in SmbFile.getCanonicalPath() in 0.7.0b. It will return
the canonical path without a "/" between the directory and the share.
For instance, it will return "smb://computer/sharedirectory/directory2"
instead of "smb://computer/share/directory/directory2". So I attached a
patch.
Thanks,
Dan
--
Dan Diephouse
http://eastnode.com
-------------- next part --------------
*** SmbFile.java Mon Aug 12 18:35:11 2002
--- src/jcifs/smb/SmbFile.java Mon Aug 12 18:36:01 2002
***************
*** 660,665 ****
--- 660,666 ----
if( share != null ) {
sb.append( '/' ).append( share );
if( canonicalPath != null ) {
+ sb.append( "/" );
sb.append( canonicalPath );
}
}
More information about the jcifs
mailing list