Skip to content

Use the owner execute bit to mark files executable - #412

Merged
woodruffw merged 2 commits into
mainfrom
ww/owner-execute-bit
Nov 30, 2026
Merged

woodruffw merged 2 commits into
mainfrom
ww/owner-execute-bit

Conversation

@woodruffw

@woodruffw woodruffw commented Nov 30, 2026 •

Copy link
Copy Markdown
Member
Automated notes

Closes #408.

Tar and ZIP decoding now use the owner execute bit (0o100) to set Member::File.executable. Recursive directory builds on Unix use the same rule. Previously, a group or other execute bit alone could grant the owner execute permission on extraction.

The decoder tests cover 0654, 0645, and 0744. The directory builder test covers 0655 and 0744.

Verified with the original tar-minefield K10 archive. Both files extracted as 0644 under umask 0022 and 0600 under 0077. The 60 tests in the affected integration test targets, Clippy, and rustfmt passed.

@codspeed

codspeed Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 57 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing ww/owner-execute-bit (f77dd37) with main (2628d40)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@woodruffw
woodruffw marked this pull request as ready for review November 30, 2026 18:20
@woodruffw
woodruffw merged commit b985563 into main Nov 30, 2026
12 checks passed
@woodruffw
woodruffw deleted the ww/owner-execute-bit branch November 30, 2026 18:21
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.

tar-minefield K10: files executable by group or others, but not by their owner.

1 participant