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

Request: Add a convenient way to inspect executable bit #342

Open
KSXGitHub opened this issue Oct 30, 2023 · 0 comments
Open

Request: Add a convenient way to inspect executable bit #342

KSXGitHub opened this issue Oct 30, 2023 · 0 comments

Comments

@KSXGitHub
Copy link

KSXGitHub commented Oct 30, 2023

Currently, the only way to inspect executable bit is to filter header.mode() through an executable bitmask (S_IXUSR = 64). This makes the code overly verbose and hard to understand.

It would be more convenient to add is_executable method to the header type or entry type.

@KSXGitHub KSXGitHub changed the title I have an Entry<'_, Cursor<Vec<u8>>>, how do I know if it's an executable file? Request: Add a convenient way to inspect executable bit Oct 30, 2023
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

No branches or pull requests

1 participant