mirror of
https://github.com/golang/go
synced 2024-11-18 22:24:50 -07:00
f60b69ed8c
Change the shouldTraverse function to no longer keep a global map of which inodes it's seen. Instead, whenever a symlink is seen for a path name, check every directory entry in that path name and see if any are the same inode as the current one, detecting any loop just from the name itself. More details of why the test was flaky are in the bug. Fixes golang/go#18142 Change-Id: I869f7a13d130c63d78b7af81802a16c4b4b2f3bd Reviewed-on: https://go-review.googlesource.com/37947 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> |
||
---|---|---|
.. | ||
fastwalk_dirent_fileno.go | ||
fastwalk_dirent_ino.go | ||
fastwalk_portable.go | ||
fastwalk_test.go | ||
fastwalk_unix.go | ||
fastwalk.go | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
sortimports.go | ||
zstdlib.go |