commit | 7829ebfebd6dfd6aacfa691a2f7ccf7ce853acd6 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Nov 03 13:51:10 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Nov 03 14:29:40 2016 -0700 |
tree | bdbef53241bfe293fc80fac4714edb8bf53ada16 | |
parent | d778640b0f19a0b3b1ee611dece93d5ff4eb61f9 [diff] |
findleaves.py: prevent recursion into symlink loops Keep a set of all visited inodes, and prevent recursing into a symlink to an already visited inode. Test: m -j Test: compare `build/tools/findleaves.py --prune=.repo --prune=.git --mindepth=2 --dir=. Android.mk` before and after Change-Id: Ied14c40d3066ef9f8e8a2b1535f56f7bbbbd0ab6