Skip to content

AlternativesCheck: Fix .conf files regex #1358

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

Merged
merged 1 commit into from
Jun 10, 2025
Merged

AlternativesCheck: Fix .conf files regex #1358

merged 1 commit into from
Jun 10, 2025

Conversation

danigm
Copy link
Member

@danigm danigm commented Jun 9, 2025

The previous regex matches any path in /usr/share/libalternatives/ that ends with "conf" so it was crashing when trying to parse an rpm file that contains a binary "ldaptor-ldap2dhcpconf" with a libalternatives configuration.

This patch fixes this issue making the regex more specific so it doesn't catch any folder, just ".conf" files.

The previous regex matches any path in /usr/share/libalternatives/ that ends
with "conf" so it was crashing when trying to parse an rpm file that contains a
binary "ldaptor-ldap2dhcpconf" with a libalternatives configuration.

This patch fixes this issue making the regex more specific so it doesn't catch
any folder, just ".conf" files.
@danigm danigm merged commit 8137cb9 into main Jun 10, 2025
12 checks passed
@danigm danigm deleted the fix-alternatives branch June 10, 2025 08:26
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.

1 participant