summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2020-07-23 09:56:56 -1000
committerSam Bingner <sam@bingner.com>2020-08-04 12:40:38 -1000
commit35cd7d96ef1bfc14a51463b4af6499cf7706fac5 (patch)
tree1d225b2310aa581cdbc3249ea55d0fe8e098b360
parent919c62aa7bd7e4ca71f575716913a40e2d14cab4 (diff)
[ld64] Update wrapper
-rw-r--r--data/ld64/wrapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/ld64/wrapper.c b/data/ld64/wrapper.c
index 2b0a43a1e..07dcf9092 100644
--- a/data/ld64/wrapper.c
+++ b/data/ld64/wrapper.c
@@ -19,6 +19,10 @@ int main (int argc, char **argv) {
fprintf(stderr, "Unable to remove existing file: %s\n", strerror(errno));
exit(-1);
}
+ if (access("/usr/libexec/ld64", X_OK) != 0) {
+ fprintf(stderr, "Error: ld64 missing from /usr/libexec/ld64\n");
+ exit(-1);
+ }
extern char** environ;
pid_t parent = getpid();
pid_t pid = fork();