aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath/path_plan9.go
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2014-08-22 17:14:42 +1000
committerAlex Brainman <alex.brainman@gmail.com>2014-08-22 17:14:42 +1000
commite6f0b746677fbca7b5dbeeb1777cc13b81a31918 (patch)
tree6460164ed06b693070b58fb534171912b5ec2434 /src/pkg/path/filepath/path_plan9.go
parent67812a7cd90c22d9b121f747ad27c4f527767ad5 (diff)
downloadgo-e6f0b746677fbca7b5dbeeb1777cc13b81a31918.tar.xz
path/filepath: make Abs handle paths like c:a.txt properly
Fixes #8145. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/126440043
Diffstat (limited to 'src/pkg/path/filepath/path_plan9.go')
-rw-r--r--src/pkg/path/filepath/path_plan9.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/path/filepath/path_plan9.go b/src/pkg/path/filepath/path_plan9.go
index 12e85aae00..ee8912d58e 100644
--- a/src/pkg/path/filepath/path_plan9.go
+++ b/src/pkg/path/filepath/path_plan9.go
@@ -28,3 +28,7 @@ func splitList(path string) []string {
}
return strings.Split(path, string(ListSeparator))
}
+
+func abs(path string) (string, error) {
+ return unixAbs(path)
+}