You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be27814
Browse filesBrowse the repository at this point in the historyBrowse files
Two store-directory walkers implemented the same algorithm and had drifted.
The private walker recomputed the root realpath on every segment, so a root
swapped mid-walk was silently adopted rather than detected. Neither naive form
was correct: re-resolving follows the swap and hoisting cannot see it. The
unified helper pins the root path and inode once, then revalidates identity per
segment. The regression fails on the previous implementation.
deny-mutations.ts also carried a private copy of the existing-ancestor
resolver with a different loop guard. Both guards canonicalized the reported
Windows paths identically after path.resolve, so removing the duplicate is
cleanup rather than a behavior change; the Windows lanes confirm it.
The four write-guard prologues in root-impl.ts now share one helper, preserving
the move-fallback exception, so a new write entry point cannot omit the deny or
alias check.
Error codes, messages, and the public surface are unchanged.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Security and Correctness
6
6
7
+
- Pin synchronous file-store roots across every parent-walk segment, so private and non-private writes reject a store root replaced during directory creation, and route deny-mutation ancestor canonicalization through the shared root resolver on Windows and POSIX.
7
8
- Keep the POSIX parent-directory no-follow identity check active for synchronous atomic-replacement adapters that omit `fchmodSync`, preventing the documented default adapter path from writing through a symlinked parent.
8
9
- Synchronize the actual destination after descriptor-bound mode application when atomic rename uses copy fallback, and include both bytes and mode in bounded fallback restoration.
9
10
- Continue accepting legacy atomic-replacement adapter literals that expose pathname `chmod` or `chmodSync` methods while keeping those methods unused.
0 commit comments