stacklit
stacklit copied to clipboard
Handle symlinks gracefully
When a project has symlinks in the source tree, stacklit follows them and can end up scanning the same files twice or hitting circular references. Should detect symlinks and either skip them or resolve them to avoid duplicate entries in the output.
Fixed in #38. The walker no longer follows directory symlinks, so loops cannot happen, and it skips broken links, links that resolve outside the root, and special files like FIFOs. An unreadable entry is skipped instead of stopping the scan. Checked on the merged build with a symlink loop, a broken link and a link to /etc.