Processing (Linux): don't use /proc/pid/exe as exePath when the file is not executable (no permission)

This commit is contained in:
Carter Li
2026-06-11 10:15:25 +08:00
parent 4594734b66
commit 52970e2d13
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ void ffProcessGetInfoLinux(pid_t pid, FFstrbuf* processName, FFstrbuf* exe, cons
}
}
if (exePath->length == 0) {
if (exePath->length == 0 && access(filePath, X_OK) == 0) {
ffStrbufSetS(exePath, filePath);
}
}