15 lines
656 B
Diff
15 lines
656 B
Diff
|
diff --git a/vendor/github.com/ipfs/go-filestore/fsrefstore.go b/vendor/github.com/ipfs/go-filestore/fsrefstore.go
|
||
|
index 19927e0..7ff13aa 100644
|
||
|
--- a/vendor/github.com/ipfs/go-filestore/fsrefstore.go
|
||
|
+++ b/vendor/github.com/ipfs/go-filestore/fsrefstore.go
|
||
|
@@ -281,9 +281,6 @@ func (f *FileManager) putTo(b *posinfo.FilestoreNode, to putter) error {
|
||
|
if !f.AllowFiles {
|
||
|
return ErrFilestoreNotEnabled
|
||
|
}
|
||
|
- if !filepath.HasPrefix(b.PosInfo.FullPath, f.root) { //nolint:staticcheck
|
||
|
- 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 {
|