diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2015-12-09 12:53:57 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2015-12-09 06:10:46 +0000 |
| commit | 2fb931d08f8b65ca36ba8deefff080f839e0ed74 (patch) | |
| tree | 86a88bf416d8d441e3f2876e69c3f7daae254124 /src/path/filepath | |
| parent | d86088037762bac6ca95c5e590529a29b5996469 (diff) | |
| download | go-2fb931d08f8b65ca36ba8deefff080f839e0ed74.tar.xz | |
path/filepath: remove code working around Join bug
EvalSymlinks code assumes that Join has a bug
(see issue #11551 for details). But issue #11551 has
been fixed. Remove the workaround so it does not
confuses us when we read code next time.
Change-Id: I06bea20189f01f9922237c05516847353d8e4736
Reviewed-on: https://go-review.googlesource.com/17620
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/path/filepath')
| -rw-r--r-- | src/path/filepath/symlink.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/path/filepath/symlink.go b/src/path/filepath/symlink.go index 546f93b237..dc7e9eb9bf 100644 --- a/src/path/filepath/symlink.go +++ b/src/path/filepath/symlink.go @@ -59,8 +59,7 @@ func walkLinks(path string, linksWalked *int) (string, error) { return newpath, err case file == "": if isDriveLetter(dir) { - // appending "." to avoid bug in Join (see issue 11551) - return dir + ".", nil + return dir, nil } if os.IsPathSeparator(dir[len(dir)-1]) { if isRoot(dir) { |
