From 350b76f244fec8a982e2035b1bbe73870e14c595 Mon Sep 17 00:00:00 2001 From: "S. Zeid" Date: Tue, 1 Feb 2022 14:45:01 -0600 Subject: [PATCH] runtime: reword comment about `readlink("/proc/self/exe", ...)` --- src/runtime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime.c b/src/runtime.c index 1af484ca..83e08cbf 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -528,9 +528,9 @@ int main(int argc, char *argv[]) { * functionality specifically for builds used by appimaged. */ if (getenv("TARGET_APPIMAGE") == NULL) { - // for some reason, `fopen("/proc/self/exe", "rb")` tries to open - // the dynamic linker when running under gcompat, even though `readlink()` - // gives the right result, so use `readlink()` here + // when running under gcompat (e.g. on Alpine Linux), + // `fopen("/proc/self/exe", "rb")` tries to open the dynamic linker, even + // though `readlink()` gives the right result, so use `readlink()` here ssize_t len = readlink("/proc/self/exe", appimage_path, sizeof(appimage_path)); if (len < 0) { perror("Failed to obtain AppImage path");