Skip to content

fix(source): propagate perm-r, owner-r, group-r from parent directories#21

Merged
subbeh merged 1 commit into
mainfrom
fix/perm-r-inheritance
Jul 19, 2026
Merged

fix(source): propagate perm-r, owner-r, group-r from parent directories#21
subbeh merged 1 commit into
mainfrom
fix/perm-r-inheritance

Conversation

@subbeh

@subbeh subbeh commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • getParentAttrs only collected non-recursive attributes (perm, owner, group) from parent directory names but ignored the recursive variants (perm-r, owner-r, group-r). A directory named bin#perm-r:755 parsed correctly but never passed PermR to children, so files inside got Perm=0 and permission-aware diffing (PR fix(target): detect and fix permission mismatches on status and apply #20) never triggered.

Test Plan

  • make test passes — added TestScannerPermRInheritance
  • make lint — 0 issues
  • Verified with mate managed against dotfiles_v2/hyprland/.local/bin#perm-r:755/ — all scripts now show perm:0755

getParentAttrs only collected non-recursive attributes (perm, owner,
group) from parent directory names but ignored the recursive variants
(perm-r, owner-r, group-r). This meant a directory named
bin#perm-r:755 parsed correctly but never passed PermR to its children
via Merge, so files inside got Perm=0 and permission-aware diffing
never triggered.
@subbeh
subbeh merged commit dceb101 into main Jul 19, 2026
3 checks passed
@subbeh
subbeh deleted the fix/perm-r-inheritance branch July 19, 2026 02: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.

1 participant