am eb3b94a1: am e0541c7d: am a6597598: Merge "fix adb {forward,reverse} --no-rebind"

* commit 'eb3b94a1c4de46345940eeabfebe7c5b8c0e84c5':
  fix adb {forward,reverse} --no-rebind
This commit is contained in:
Elliott Hughes 2015-07-30 01:30:00 +00:00 committed by Android Git Automerger
commit 43244ee1ee

View file

@ -770,12 +770,12 @@ int handle_forward_request(const char* service, TransportType type, const char*
if (android::base::StartsWith(service, "killforward:")) {
kill_forward = true;
service += 12;
} else {
service += 8; // skip past "forward:"
if (android::base::StartsWith(service, "norebind:")) {
no_rebind = true;
service += 9;
}
} else {
service += 8;
}
std::vector<std::string> pieces = android::base::Split(service, ";");
@ -824,7 +824,7 @@ int handle_forward_request(const char* service, TransportType type, const char*
message = android::base::StringPrintf("cannot bind to socket: %s", strerror(errno));
break;
case INSTALL_STATUS_CANNOT_REBIND:
message = android::base::StringPrintf("cannot rebind existing socket: %s", strerror(errno));
message = android::base::StringPrintf("cannot rebind existing socket");
break;
case INSTALL_STATUS_LISTENER_NOT_FOUND:
message = android::base::StringPrintf("listener '%s' not found", service);