mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 07:24:19 +01:00
Processing (Linux): don't use /proc/pid/exe as exePath when the file is not executable (no permission)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user