]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: use filepath.Clean rather than path.Clean
authorKoichi Shiraishi <zchee.io@gmail.com>
Mon, 21 Oct 2019 06:48:23 +0000 (15:48 +0900)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 28 Oct 2019 19:31:17 +0000 (19:31 +0000)
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>
src/cmd/link/internal/ld/ld.go

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