Skip to content

Commit cb22f88

Browse files
committed
runtime: reword comment about readlink("/proc/self/exe", ...)
1 parent eb75583 commit cb22f88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,9 @@ int main(int argc, char *argv[]) {
528528
* functionality specifically for builds used by appimaged.
529529
*/
530530
if (getenv("TARGET_APPIMAGE") == NULL) {
531-
// for some reason, `fopen("/proc/self/exe", "rb")` tries to open
532-
// the dynamic linker when running under gcompat, even though `readlink()`
533-
// gives the right result, so use `readlink()` here
531+
// when running under gcompat (e.g. on Alpine Linux),
532+
// `fopen("/proc/self/exe", "rb")` tries to open the dynamic linker, even
533+
// though `readlink()` gives the right result, so use `readlink()` here
534534
ssize_t len = readlink("/proc/self/exe", appimage_path, sizeof(appimage_path));
535535
if (len < 0) {
536536
perror("Failed to obtain AppImage path");

0 commit comments

Comments
 (0)