From b8c1cf7451d376ff4a3e2ebdf085ffd5d0a55b87 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 22 Mar 2021 17:17:08 +0000 Subject: [PATCH] union: fix initialisation broken in refactor - fixes #5139 This commit broke the initialisation of the union backend f17d7c00126ed567 union: refactor to use fspath.SplitFs instead of fs.ParseRemote #4996 This patch fixes it. --- backend/union/upstream/upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/union/upstream/upstream.go b/backend/union/upstream/upstream.go index 99973f9e2..93bce52e9 100644 --- a/backend/union/upstream/upstream.go +++ b/backend/union/upstream/upstream.go @@ -90,7 +90,7 @@ func New(ctx context.Context, remote, root string, cacheTime time.Duration) (*Fs return nil, err } f.RootFs = rFs - rootString := path.Join(fsPath, filepath.ToSlash(root)) + rootString := path.Join(remote, filepath.ToSlash(root)) myFs, err := cache.Get(ctx, rootString) if err != nil && err != fs.ErrorIsFile { return nil, err