this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix running programs directly via `darling prog`

+6 -1
+6 -1
src/dyld/mldr.c
··· 92 92 } 93 93 94 94 // sys_execve() passes the original file path appended to the mldr path in argv[0]. 95 - filename = (char*) __builtin_alloca(strlen(argv[0])+1); 96 95 97 96 p = strchr(argv[0], '!'); 98 97 if (p != NULL) 98 + { 99 + filename = (char*) __builtin_alloca(strlen(argv[0])+1); 99 100 strcpy(filename, p + 1); 101 + } 100 102 else 103 + { 104 + filename = (char*) __builtin_alloca(strlen(argv[1])+1); 101 105 strcpy(filename, argv[1]); 106 + } 102 107 103 108 #ifdef __i386__ 104 109 load(filename, &entryPoint, &mh, CPU_TYPE_X86, argv); // accept i386 only