[jcifs] endpoint case
vianney
vianney+smb at gmail.com
Wed Nov 9 16:36:39 MST 2011
In windows the case is not a big deal but in linux systems, sometimes they
expect uppercase. So i changed the following in DcerpcBinding.java to allow that
uppercase string to reach them:
From:
void setOption(String key, Object val) throws DcerpcException {
if (key.equals("endpoint")) {
endpoint = val.toString().toLowerCase();
if (endpoint.startsWith("\\pipe\\")) {
String iface = (String)INTERFACES.get(endpoint.substring(6));
To:
void setOption(String key, Object val) throws DcerpcException {
if (key.equals("endpoint")) {
// VNA: forcefully transforming the endpoint into lowercase limits the
choice of the library's user.
// Changing it here so that the developer gets to make that choice.
endpoint = val.toString();
if (endpoint.toLowerCase().startsWith("\\pipe\\")) {
String iface = (String)INTERFACES.get(endpoint.toLowerCase().substring(6));
More information about the jCIFS
mailing list