Skip to content

FIX: Ignore high bits in mode field#50

Open
internetisalie wants to merge 1 commit intophip1611:mainfrom
internetisalie:ignore/high-mode-bits
Open

FIX: Ignore high bits in mode field#50
internetisalie wants to merge 1 commit intophip1611:mainfrom
internetisalie:ignore/high-mode-bits

Conversation

@internetisalie
Copy link

@internetisalie internetisalie commented Jan 29, 2026

Various tar libraries create incompatible mode fields with high bits set.
For example golang/go#20150

We can use either:

  • from_bits_truncate which ignores low incorrect bits; or
  • clear the high bits before parsing ModeFlags, chosen here.

Various tar libraries create incompatible mode fields
For example golang/go#20150
Copy link
Owner

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

Interesting. LGTM, thanks for the fix!

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