You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.The text was updated successfully, but these errors were encountered: