SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- adb/adb.c.orig Mon Feb 9 09:10:55 2015
+++ adb/adb.c Tue May 5 07:56:50 2015
@@ -1191,7 +1191,7 @@ int launch_server(int server_port)
char str_port[30];
snprintf(str_port, sizeof(str_port), "%d", server_port);
// child process
- int result = execl(path, "adb", "-P", str_port, "fork-server", "server", NULL);
+ int result = execlp(path, "adb", "-P", str_port, "fork-server", "server", NULL);
// this should not return
fprintf(stderr, "OOPS! execl returned %d, errno: %d\n", result, errno);
} else {
@@ -1687,6 +1687,8 @@ int handle_host_request(char *service, transport_type
int main(int argc, char **argv)
{
+ init_my_path(argv[0]);
+
#if ADB_HOST
adb_sysdeps_init();
adb_trace_init();