Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packagekit: Fix crash on unexpected uname -r format #20152

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

martinpitt
Copy link
Member

With custom kernels it can happen that uname -r does not contain a distribution release part (after a -). Then trying to split() it caused a TypeError oops.

Fixes #20089

With custom kernels it can happen that `uname -r` does not contain a
distribution release part (after a `-`). Then trying to `split()` it
caused a TypeError oops.

Fixes cockpit-project#20089
@martinpitt martinpitt requested a review from jelly March 11, 2024 07:15
@martinpitt martinpitt merged commit 53e5ca2 into cockpit-project:main Mar 11, 2024
73 of 74 checks passed
@martinpitt martinpitt deleted the kver-crash branch March 11, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser Console Error: Cannot read properties of undefined (reading 'split')
2 participants