1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00
go/godoc/vfs
Ian Lance Taylor f03b3350b7 godoc: don't try to follow all symlinks
Revert https://golang.org/cl/45096.

Original change description:
    godoc: follow symbolic links to folders in GOROOT

    Directory walking in godoc relies on ReadDir which returns the result
    of os.Lstat.

    Instead make the the OS VFS's ReadDir use os.Stat on symlinks before
    returning.

Updates golang/go#15049
Fixes golang/go#21061

Change-Id: Ieaa7923d85842f3da5696a7f46134d16407dae66
Reviewed-on: https://go-review.googlesource.com/53634
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-08-07 23:14:37 +00:00
..
gatefs tools: add import comments. 2014-12-09 22:42:16 +00:00
httpfs tools: add import comments. 2014-12-09 22:42:16 +00:00
mapfs tools: add import comments. 2014-12-09 22:42:16 +00:00
zipfs godoc/vfs/zipfs: use an os.IsNotExist-compatible error 2016-02-15 04:18:10 +00:00
emptyvfs_test.go x/tools/godoc: gofmt -s -w 2017-02-15 21:42:32 +00:00
emptyvfs.go x/tools/godoc/vfs: adds NewNameSpace() and emptyVFS for better behavior 2016-03-21 00:49:05 +00:00
namespace.go godoc: rate limit file parsing on startup, improve diagnostics 2016-06-14 05:10:12 +00:00
os.go godoc: don't try to follow all symlinks 2017-08-07 23:14:37 +00:00
vfs.go tools: add import comments. 2014-12-09 22:42:16 +00:00