Commit d4375a6
translate: allow special mode bits in v34tov33 translation
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
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 40beacd commit d4375a6
2 files changed
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 141 | | |
154 | 142 | | |
155 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2401 | 2401 | | |
2402 | 2402 | | |
2403 | 2403 | | |
2404 | | - | |
| 2404 | + | |
| 2405 | + | |
2405 | 2406 | | |
2406 | 2407 | | |
2407 | 2408 | | |
| |||
2419 | 2420 | | |
2420 | 2421 | | |
2421 | 2422 | | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
2422 | 2426 | | |
2423 | | - | |
2424 | | - | |
2425 | | - | |
| 2427 | + | |
2426 | 2428 | | |
2427 | 2429 | | |
2428 | 2430 | | |
| |||
2446 | 2448 | | |
2447 | 2449 | | |
2448 | 2450 | | |
2449 | | - | |
2450 | | - | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
2451 | 2454 | | |
2452 | 2455 | | |
2453 | 2456 | | |
| |||
0 commit comments