diff --git a/src/internal/safefilepath/path_other.go b/src/internal/safefilepath/path_other.go index f93da18680..974e7751a2 100644 --- a/src/internal/safefilepath/path_other.go +++ b/src/internal/safefilepath/path_other.go @@ -11,7 +11,7 @@ import "runtime" func fromFS(path string) (string, error) { if runtime.GOOS == "plan9" { if len(path) > 0 && path[0] == '#' { - return path, errInvalidPath + return "", errInvalidPath } } for i := range path {