summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-05-06 14:51:30 -0600
committertjpcc <tjp@ctrl-c.club>2023-05-06 15:00:10 -0600
commit5b849792511ea3d838e8dc12561994f07514374a (patch)
tree1ed220bdb713f5fa631681576696c0eecedff8d8 /contrib
parentb6d785af563db161aa1f4329175b9530aeb38c9b (diff)
don't start in-FS paths with ./
this was tricky, it didn't fail until I got it on a FreeBSD host
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fs/dir.go2
1 files changed, 1 insertions, 1 deletions
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
}