SIGN IN SIGN UP

fix: handle Windows backslash separators in isPathWithinRoot (#187)

On Windows, path.join() / path.resolve() produce paths with backslash
separators. isPathWithinRoot() hardcoded '/' in its startsWith check,
causing every stat/read/write on OverlayFs to ENOENT on Windows.

- Accept both '/' and '\' as valid separators after the root prefix
- Normalize backslash to '/' in sanitizeSymlinkTarget relativePath
- Add Windows backslash test cases for isPathWithinRoot
J
Jueast committed
1bfa047e0dc5881651c855049e99070076f0c839
Parent: 6f22c99
Committed by GitHub <noreply@github.com> on 4/16/2026, 5:23:02 PM