facebook / facebook/watchman

check for filesystem boundaries and prevent recursion

Open
#284 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

We don't do this today, but we should. While crawling, if the candidate directory has a different device major/minor to the root, we should treat it similarly to a symlink; we can record the node itself, but never recurse into it (and prune its children off if it transitioned from a regular dir to being a mount point for something else)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.