[jcifs] [Patch] Fix protocol in Handler...
David Daney
ddaney at avtrex.com
Thu Oct 7 17:34:13 GMT 2004
Greetings,
We have been using jcifs on an embedded mips processor with the GCC/libgcj
java runtime. With a few minor tweaks it works great. Thanks for the good
work.
We think the only change needed to jcifs 1.1.0 is the attached patch to
Handler.java
The protocol name should not have a "://" suffix it is just "smb"
I plan on trying to commit the "UnicodeLittleUnmarked" charset encoder to
GCC 4.0 so that if you commit this change it should all work out-of-the box
with GCC 4.0
Regards,
David Daney
-------------- next part --------------
diff -rcp jcifs_1.1.0/src/jcifs/smb/Handler.java jcifs_1.1.0.avtrex/src/jcifs/smb/Handler.java
*** jcifs_1.1.0/src/jcifs/smb/Handler.java 2004-09-30 20:29:14.000000000 -0700
--- jcifs_1.1.0.avtrex/src/jcifs/smb/Handler.java 2004-10-05 15:33:40.000000000 -0700
*************** public class Handler extends URLStreamHa
*** 101,107 ****
if( port == -1 ) {
port = getDefaultPort();
}
! setURL( u, "smb://", u.getHost(), port,
u.getAuthority(), userinfo,
path, u.getQuery(), null );
}
--- 101,107 ----
if( port == -1 ) {
port = getDefaultPort();
}
! setURL( u, "smb", u.getHost(), port,
u.getAuthority(), userinfo,
path, u.getQuery(), null );
}
More information about the jcifs
mailing list