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

Use libelf for determining file colors #1095

Merged
merged 1 commit into from Mar 6, 2020

Conversation

pmatilai
Copy link
Member

@pmatilai pmatilai commented Mar 4, 2020

libmagic strings are notoriously unreliable as the details from version
to version. We link to libelf anyway so we might as well as get the
info straight from the horse's mouth.

Besides being more reliable, this detaches the coloring business from
the hardcoded rpmfcTokens struct and informative-only FILECLASS contents,
opening the door for other changes in that area.

libmagic strings are notoriously unreliable as the details from version
to version. We link to libelf anyway so we might as well as get the
info straight from the horse's mouth.

Besides being more reliable, this detaches the coloring business from
the hardcoded rpmfcTokens struct and informative-only FILECLASS contents,
opening the door for other changes in that area.
@ffesti
Copy link
Contributor

ffesti commented Mar 4, 2020

Looks good to me - not that I am that familiar with libelf.

Copy link
Member

@Conan-Kudo Conan-Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pmatilai pmatilai merged commit 3c061be into rpm-software-management:master Mar 6, 2020
@pmatilai pmatilai deleted the elf-color-pr branch April 3, 2020 10:33
@pmatilai pmatilai moved this from In progress to Done in Use MIME types in favor of "magic" strings Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants