# # # patch "mtn_cvs/cvs_client.cc" # from [95fe0347874afc2d8daf816669242dbef02d27bf] # to [28a30e65f85a54933f468b4944229df45bc9555b] # ============================================================ --- mtn_cvs/cvs_client.cc 95fe0347874afc2d8daf816669242dbef02d27bf +++ mtn_cvs/cvs_client.cc 28a30e65f85a54933f468b4944229df45bc9555b @@ -178,6 +178,14 @@ cvs_client::cvs_client(const std::string } else root_start=0; root=d_arg.substr(root_start); + for (std::string::iterator i = root.end()-1; ; --i) { + // remove any trailing '/' chars + // loop back to the first non-/ char then remove the chars after it + if ((*i != '/') || (i == root.begin())) { + root.erase(i + 1, root.end()); + break; + } + } } memset(&compress,0,sizeof compress);