1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54:45 -07:00
go/godoc/vfs
Michael Edwards 4ce273956a 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.

Fixes golang/go#15049

Change-Id: I34d17ca0027b0245f5ef434a000e5a3fe2af11cf
Reviewed-on: https://go-review.googlesource.com/45096
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 21:15:33 +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_test.go godoc: follow symbolic links to folders in GOROOT 2017-07-14 21:15:33 +00:00
os.go godoc: follow symbolic links to folders in GOROOT 2017-07-14 21:15:33 +00:00
vfs.go tools: add import comments. 2014-12-09 22:42:16 +00:00