am aeceb517: adb: Fix adb tcpip command
* commit 'aeceb5174502659cb4fff6de924b54ef7e6cdae7': adb: Fix adb tcpip command
This commit is contained in:
commit
504dccec97
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
D("LS(%d): bound to '%s' via %d\n", s->id, name, fd);
|
||||||
|
|
||||||
#if !ADB_HOST
|
#if !ADB_HOST
|
||||||
if ((!strcmp(name, "root:") && getuid() != 0)
|
if ((!strncmp(name, "root:", 5) && getuid() != 0)
|
||||||
|| !strcmp(name, "usb:")
|
|| !strncmp(name, "usb:", 4)
|
||||||
|| !strcmp(name, "tcpip:")) {
|
|| !strncmp(name, "tcpip:", 6)) {
|
||||||
D("LS(%d): enabling exit_on_close\n", s->id);
|
D("LS(%d): enabling exit_on_close\n", s->id);
|
||||||
s->exit_on_close = 1;
|
s->exit_on_close = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue