2021-06-05 23:59:06 +03:00
|
|
|
diff --git a/vendor/github.com/ipfs/go-filestore/fsrefstore.go b/vendor/github.com/ipfs/go-filestore/fsrefstore.go
|
2022-05-29 23:20:33 +03:00
|
|
|
index 9eb2b43..43e336c 100644
|
2021-06-05 23:59:06 +03:00
|
|
|
--- a/vendor/github.com/ipfs/go-filestore/fsrefstore.go
|
|
|
|
+++ b/vendor/github.com/ipfs/go-filestore/fsrefstore.go
|
2022-05-29 23:20:33 +03:00
|
|
|
@@ -291,9 +291,6 @@ func (f *FileManager) putTo(ctx context.Context, b *posinfo.FilestoreNode, to pu
|
2021-06-05 23:59:06 +03:00
|
|
|
return ErrFilestoreNotEnabled
|
|
|
|
}
|
2022-05-29 23:20:33 +03:00
|
|
|
//lint:ignore SA1019 // ignore staticcheck
|
|
|
|
- if !filepath.HasPrefix(b.PosInfo.FullPath, f.root) {
|
2021-06-05 23:59:06 +03:00
|
|
|
- return fmt.Errorf("cannot add filestore references outside ipfs root (%s)", f.root)
|
|
|
|
- }
|
|
|
|
|
|
|
|
p, err := filepath.Rel(f.root, b.PosInfo.FullPath)
|
|
|
|
if err != nil {
|