Skip to content

Commit 2fb931d

Browse files
committed
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 <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent d860880 commit 2fb931d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/path/filepath/symlink.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ func walkLinks(path string, linksWalked *int) (string, error) {
5959
return newpath, err
6060
case file == "":
6161
if isDriveLetter(dir) {
62-
// appending "." to avoid bug in Join (see issue 11551)
63-
return dir + ".", nil
62+
return dir, nil
6463
}
6564
if os.IsPathSeparator(dir[len(dir)-1]) {
6665
if isRoot(dir) {

0 commit comments

Comments
 (0)