mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-01 01:53:56 -04:00
flatpak-coredumpctl: Guard against unexpected coredumpctl output
The bare tuple unpack 'executable, = re.findall(...)' raises a cryptic ValueError if the pattern matches zero or more than one line. Replace it with an explicit length check and a clear error message. Also pass count=1 to str.replace() so a /newroot prefix is only stripped once and /app/ paths are passed through unchanged.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f