diff --git a/client/src/session/remote/linux/session.cc b/client/src/session/remote/linux/session.cc index 953624b..e15f4d4 100644 --- a/client/src/session/remote/linux/session.cc +++ b/client/src/session/remote/linux/session.cc @@ -80,17 +80,22 @@ throw std::system_error(EINVAL, std::system_category()); } + string name(id,sep-id); + std::transform(name.begin(), name.end(), name.begin(),[](unsigned char c){ return std::tolower(c); }); + + string path(sep+1); + std::transform(path.begin(), path.end(), path.begin(),[](unsigned char c){ return std::tolower(c); }); + this->name = "br.com.bb."; - this->name += string(id,(sep - id)); + this->name += name; this->name += "."; - this->name += (sep+1); + this->name += path; - std::transform(this->name.begin(), this->name.end(), this->name.begin(),[](unsigned char c){ return std::tolower(c); }); this->path = "/br/com/bb/"; - this->path += string(id,(sep - id)); + this->path += name; this->path += "/"; - this->path += (sep+1); + this->path += path; this->interface = "br.com.bb.tn3270.session"; diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index d9fc1e9..4edf4eb 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -177,7 +177,7 @@ int main(int argc, char **argv) { - const char * session = ":a"; + const char * session = ":A"; #ifndef _WIN32 #pragma GCC diagnostic push -- libgit2 0.21.2