From 60b0582a36ebcd82d7c9b3b77389b373d84ab1b4 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 28 Feb 2022 19:45:45 +0100 Subject: [PATCH] patches: update ipfs patchset --- .../ipfs/ipfs-unsafe-allow-all-paths-for-filestore.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/patches/base/ipfs/ipfs-unsafe-allow-all-paths-for-filestore.patch b/patches/base/ipfs/ipfs-unsafe-allow-all-paths-for-filestore.patch index 7e5d366..da379d7 100644 --- a/patches/base/ipfs/ipfs-unsafe-allow-all-paths-for-filestore.patch +++ b/patches/base/ipfs/ipfs-unsafe-allow-all-paths-for-filestore.patch @@ -1,12 +1,13 @@ diff --git a/vendor/github.com/ipfs/go-filestore/fsrefstore.go b/vendor/github.com/ipfs/go-filestore/fsrefstore.go -index 19927e0..7ff13aa 100644 +index 9eb2b43..332cdc0 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 { +@@ -290,10 +290,6 @@ func (f *FileManager) putTo(ctx context.Context, b *posinfo.FilestoreNode, to pu if !f.AllowFiles { return ErrFilestoreNotEnabled } -- if !filepath.HasPrefix(b.PosInfo.FullPath, f.root) { //nolint:staticcheck +- //lint:ignore SA1019 // ignore staticcheck +- if !filepath.HasPrefix(b.PosInfo.FullPath, f.root) { - return fmt.Errorf("cannot add filestore references outside ipfs root (%s)", f.root) - }