diff options
author | Po Lu <luangruo@yahoo.com> | 2024-03-14 13:45:48 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2024-03-14 13:45:48 +0800 |
commit | 30bc867aecc59265b6e315acf459f8d79c423bca (patch) | |
tree | 501c2c810e57464d20cf55d7e693d5f2f3ae2ef0 /exec/exec.c | |
parent | db5c8bda638468f8798c974f4ef4ab3905dbddd3 (diff) | |
download | emacs-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.c | 2 |
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; |