Skip to content

translate: allow special mode bits in v34tov33 translation#62

Closed
prestist wants to merge 1 commit into
coreos:mainfrom
prestist:worktree-issue-61-special-mode-bits
Closed

translate: allow special mode bits in v34tov33 translation#62
prestist wants to merge 1 commit into
coreos:mainfrom
prestist:worktree-issue-61-special-mode-bits

Conversation

@prestist

Copy link
Copy Markdown
Contributor

Previously, the v34tov33 translator would error if special mode bits (setuid/setgid/sticky) were present in file or directory modes. This prevented down-translation of valid v3.4 configs.

The translator already had the correct logic to mask out special mode bits during translation (since v3.3 doesn't support them), but the validation was preventing that code from running.

This fix removes the validation checks and allows the translation to proceed, with special mode bits being masked out as intended.

Fixes #61

Previously, the v34tov33 translator would error if special mode bits
(setuid/setgid/sticky) were present in file or directory modes. This
prevented down-translation of valid v3.4 configs.

The translator already had the correct logic to mask out special mode
bits during translation (since v3.3 doesn't support them), but the
validation was preventing that code from running.

This fix removes the validation checks and allows the translation to
proceed, with special mode bits being masked out as intended.

Fixes coreos#61

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@prestist prestist force-pushed the worktree-issue-61-special-mode-bits branch from d4375a6 to a5b5048 Compare March 31, 2026 20:43
@travier

travier commented Apr 1, 2026

Copy link
Copy Markdown
Member

I think this looks good. Let's merge it with the other PR to re-add the downgrade failure for the new spec.

@prestist

prestist commented Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged into #58

@prestist prestist closed this Apr 6, 2026
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.

Update translator for new spec with special mode bits support

2 participants