SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
devel/adb/patches/patch-adb_adb_c
Normal file
20
devel/adb/patches/patch-adb_adb_c
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue