1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:14:45 -07:00

cmd/link: use filepath.Clean rather than path.Clean

pname already translated package path into a file path on for statement.
Use same as filepath.Clean rather than path.Clean.

Change-Id: I9782e2396313abc39ac55e3fdcec8f53bcaff84e
Reviewed-on: https://go-review.googlesource.com/c/go/+/202377
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Koichi Shiraishi 2019-10-21 15:48:23 +09:00 committed by Matthew Dempsky
parent 1c38ee5ffe
commit 18e9cdc70e

View File

@ -148,7 +148,7 @@ func findlib(ctxt *Link, lib string) (string, bool) {
}
}
}
pname = path.Clean(pname)
pname = filepath.Clean(pname)
}
return pname, isshlib