From 5b849792511ea3d838e8dc12561994f07514374a Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 6 May 2023 14:51:30 -0600 Subject: don't start in-FS paths with ./ this was tricky, it didn't fail until I got it on a FreeBSD host --- contrib/fs/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/fs') diff --git a/contrib/fs/dir.go b/contrib/fs/dir.go index 69d17e9..259ce1b 100644 --- a/contrib/fs/dir.go +++ b/contrib/fs/dir.go @@ -79,7 +79,7 @@ func ResolveDirectoryDefault( }) if idx < len(entries) && entries[idx].Name() == filename { - path := dirPath + "/" + filename + path := strings.TrimLeft(dirPath+"/"+filename, "./") file, err := fileSystem.Open(path) return path, file, err } -- cgit v1.2.3