am aeceb517: adb: Fix adb tcpip command

* commit 'aeceb5174502659cb4fff6de924b54ef7e6cdae7':
  adb: Fix adb tcpip command
This commit is contained in:
Benoit Goby 2012-06-12 16:44:11 -07:00 committed by Android Git Automerger
commit 504dccec97

View file

@ -427,9 +427,9 @@ asocket *create_local_service_socket(const char *name)
D("LS(%d): bound to '%s' via %d\n", s->id, name, fd);
#if !ADB_HOST
if ((!strcmp(name, "root:") && getuid() != 0)
|| !strcmp(name, "usb:")
|| !strcmp(name, "tcpip:")) {
if ((!strncmp(name, "root:", 5) && getuid() != 0)
|| !strncmp(name, "usb:", 4)
|| !strncmp(name, "tcpip:", 6)) {
D("LS(%d): enabling exit_on_close\n", s->id);
s->exit_on_close = 1;
}