diff options
author | Elliott Hughes <enh@google.com> | 2015-07-30 00:38:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-07-30 00:38:05 +0000 |
commit | a6597598a0b82759960df09fd173192ca8c82f0c (patch) | |
tree | a6bf7b87fcbaf8b0391392430441f478cf000975 | |
parent | fc2f1e61146627e387b8273981914dd5bc059317 (diff) | |
parent | a6b340af123b82e3aaa33cb2a0d45f637eeb4759 (diff) | |
download | system_core-a6597598a0b82759960df09fd173192ca8c82f0c.tar.gz system_core-a6597598a0b82759960df09fd173192ca8c82f0c.tar.bz2 system_core-a6597598a0b82759960df09fd173192ca8c82f0c.zip |
Merge "fix adb {forward,reverse} --no-rebind"
-rw-r--r-- | adb/adb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adb/adb.cpp b/adb/adb.cpp index 97ce12562..aa9ef55a1 100644 --- a/adb/adb.cpp +++ b/adb/adb.cpp @@ -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); |