summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-14 23:54:49 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-15 00:43:49 -0600
commit6d391f9ef2d2588ae2faf0efb73bd1ac934b063a (patch)
tree2e8b0038a6ff22006346f54f8ef6ac811e0377e3 /Makefile
parentbf7102a303ec86f2d9bc9fd451db78a6815ca175 (diff)
downloadgcompat-6d391f9ef2d2588ae2faf0efb73bd1ac934b063a.tar.gz
gcompat-6d391f9ef2d2588ae2faf0efb73bd1ac934b063a.tar.bz2
gcompat-6d391f9ef2d2588ae2faf0efb73bd1ac934b063a.tar.xz
gcompat-6d391f9ef2d2588ae2faf0efb73bd1ac934b063a.zip
readlink: Intercept readlink("/proc/self/exe")
This allows programs run through gcompat to fork and re-exec themselves. It fixes readlink("/proc/self/exe") to return the executable's absolute path, instead of musl's path. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5e5a12e..b6bee29 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ LIBGCOMPAT_SRC = \
libgcompat/netdb.c \
libgcompat/pthread.c \
libgcompat/pwd.c \
+ libgcompat/readlink.c \
libgcompat/resolv.c \
libgcompat/resource.c \
libgcompat/setjmp.c \