]> git.eshelyaron.com Git - emacs.git/commit
Improve /proc/self/exe substitution on Android
authorPo Lu <luangruo@yahoo.com>
Thu, 14 Mar 2024 05:45:48 +0000 (13:45 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 08:59:14 +0000 (09:59 +0100)
commitead1a200e01649dae9a72d9be7e084e5ecd63a17
tree7b742d97ac41da0ace8fb68b04dd6b19c63dae39
parentdcda0feef68f358c5d588dc9a26d0177acd30883
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.

(cherry picked from commit 30bc867aecc59265b6e315acf459f8d79c423bca)
exec/configure.ac
exec/exec.c
exec/exec.h
exec/trace.c