Skip to content

AlternativesCheck: Fix .conf files regex#1490

Merged
danigm merged 1 commit intoopensuse-slfo-mainfrom
fix-libalternatives-check-slfo-main
Apr 29, 2026
Merged

AlternativesCheck: Fix .conf files regex#1490
danigm merged 1 commit intoopensuse-slfo-mainfrom
fix-libalternatives-check-slfo-main

Conversation

@danigm
Copy link
Copy Markdown
Member

@danigm danigm commented Apr 6, 2026

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.

Cherry-pick: 27ee58a
Fix https://bugzilla.suse.com/show_bug.cgi?id=1261308

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 force-pushed the fix-libalternatives-check-slfo-main branch from c707c18 to acca52c Compare April 29, 2026 07:13
@danigm danigm merged commit 56a0c16 into opensuse-slfo-main Apr 29, 2026
4 of 7 checks passed
@danigm danigm deleted the fix-libalternatives-check-slfo-main branch April 29, 2026 07:17
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.

2 participants