summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2024-03-14 13:45:48 +0800
committerPo Lu <luangruo@yahoo.com>2024-03-14 13:45:48 +0800
commit30bc867aecc59265b6e315acf459f8d79c423bca (patch)
tree501c2c810e57464d20cf55d7e693d5f2f3ae2ef0 /exec/exec.c
parentdb5c8bda638468f8798c974f4ef4ab3905dbddd3 (diff)
downloademacs-30bc867aecc59265b6e315acf459f8d79c423bca.tar.gz
Improve /proc/self/exe substitution on Android
* exec/configure.ac (USER_SWORD): New macro. * exec/exec.c (format_pid): Export this function. * exec/exec.h: * exec/trace.c (canon_path): New function. (handle_readlinkat, handle_openat): Test complete file name against /proc/self/exe, and further check for /proc/pid/exe.
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 254a983f25f..cbe22d4f18c 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -865,7 +865,7 @@ insert_args (struct exec_tracee *tracee, USER_REGS_STRUCT *regs,
result in *IN, and return a pointer to the byte after the
result. REM should be NULL. */
-static char *
+char *
format_pid (char *in, unsigned int pid)
{
unsigned int digits[32], *fill;