summaryrefslogtreecommitdiff
path: root/libgo/go/path/filepath/path_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/path/filepath/path_unix.go')
-rw-r--r--libgo/go/path/filepath/path_unix.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/path/filepath/path_unix.go b/libgo/go/path/filepath/path_unix.go
index 2d242cc0b5..d77ff24cdc 100644
--- a/libgo/go/path/filepath/path_unix.go
+++ b/libgo/go/path/filepath/path_unix.go
@@ -20,6 +20,9 @@ func volumeNameLen(path string) int {
}
// HasPrefix exists for historical compatibility and should not be used.
+//
+// Deprecated: HasPrefix does not respect path boundaries and
+// does not ignore case when required.
func HasPrefix(p, prefix string) bool {
return strings.HasPrefix(p, prefix)
}