Files
codebase-memory-mcp/src/discover
Martin Vogel ab0fe75f1f discover: skip Windows junctions and reparse points during the walk
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>
2026-07-07 20:54:59 +02:00
..