Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 504dccec authored by Benoit Goby's avatar Benoit Goby Committed by Android Git Automerger
Browse files

am aeceb517: adb: Fix adb tcpip command

* commit 'aeceb517':
  adb: Fix adb tcpip command
parents 1e96e16f aeceb517
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
    }