From 3e27b197acf767305a2b0c3f8c079ed9074a7d0c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 16 Sep 2024 23:33:15 +0200 Subject: [PATCH] a --- src/termux-readlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/termux-readlink.c b/src/termux-readlink.c index ee5536b..e8a1cd3 100644 --- a/src/termux-readlink.c +++ b/src/termux-readlink.c @@ -1,3 +1,4 @@ +#include #define _GNU_SOURCE #include #include @@ -15,6 +16,6 @@ ssize_t readlink(const char *restrict pathname, char *restrict buf, size_t bufsi } } - return syscall(SYS_readlink, pathname, buf, bufsiz); + return syscall(SYS_execve, pathname, buf, bufsiz); }