mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-05 08:23:53 +08:00
safe_stat rejected POSIX symlinks (lstat + S_ISLNK) but on Windows returned wide_stat directly, which follows junctions / reparse points — so a junction inside an indexed tree could be walked into and files outside the project root pulled into the index. Check FILE_ATTRIBUTE_REPARSE_POINT and skip such entries, mirroring the POSIX symlink skip. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>