Permalink
Browse files

am aeceb51: adb: Fix adb tcpip command

* commit 'aeceb5174502659cb4fff6de924b54ef7e6cdae7':
  adb: Fix adb tcpip command
  • Loading branch information...
2 parents 1e96e16 + aeceb51 commit 504dccec97c12283f348838ba0bf88536322ee6b @benoitgoby benoitgoby committed with Android Git Automerger Jun 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 adb/sockets.c
View
6 adb/sockets.c
@@ -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;
}

0 comments on commit 504dcce

Please sign in to comment.