Commit 1de334f
authored
fix: mask file-type bits from chmod, harden staging dir symlink check
- Add `import stat` to imports
- Use `stat.S_IMODE(mode)` before chmod in staging write (thread 20, line 1464)
- Use `stat.S_IMODE(preserved_mode)` and make chmod best-effort in
`_restore_stranded_config_file` (thread 18, line 1492)
- Add `not rescue_staging_dir.is_symlink()` guard to cleanup (thread 19, line 1522)
Assisted-by: GitHub Copilot (model: claude-sonnet-4.6, autonomous)1 parent 351e23c commit 1de334f
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
1461 | 1462 | | |
1462 | 1463 | | |
1463 | 1464 | | |
1464 | | - | |
| 1465 | + | |
1465 | 1466 | | |
1466 | 1467 | | |
1467 | 1468 | | |
| |||
1489 | 1490 | | |
1490 | 1491 | | |
1491 | 1492 | | |
1492 | | - | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
1493 | 1497 | | |
1494 | 1498 | | |
1495 | 1499 | | |
| |||
1518 | 1522 | | |
1519 | 1523 | | |
1520 | 1524 | | |
1521 | | - | |
| 1525 | + | |
1522 | 1526 | | |
1523 | 1527 | | |
1524 | 1528 | | |
| |||
0 commit comments