summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();