diff options
| author | Bryan C. Mills <bcmills@google.com> | 2018-10-10 10:03:27 -0400 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2018-11-27 06:27:52 +0000 |
| commit | 440368da526b69fe9a500e29ce9cd84aa7cc6c35 (patch) | |
| tree | b418eb98cbf3fcedeba8f56458a3e7359500e91e /src/plugin | |
| parent | 979d9027aecf265214a6dcc27fe037bfd70355f2 (diff) | |
| download | go-440368da526b69fe9a500e29ce9cd84aa7cc6c35.tar.xz | |
cmd/go/internal/imports: resolve symlinks in ScanDir
We were using the mode reported by ReadDir to decide whether each
entry is a file, but in the case of symlinks that isn't sufficient: a
symlink could point to either a file or a directory, and if it is a
file we should treat it as such.
Fixes #28107
Change-Id: Icf6e495dce427a7b1124c9cc9f085e40a215c169
Reviewed-on: https://go-review.googlesource.com/c/141097
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/plugin')
0 files changed, 0 insertions, 0 deletions
