diff --git a/storage/filesystem.go b/storage/filesystem.go index dfbe372..081253e 100644 --- a/storage/filesystem.go +++ b/storage/filesystem.go @@ -214,8 +214,8 @@ func (b *filesystemBackend) PutAddressObject(ctx context.Context, path string, c if err != nil { return "", err } - path = filepath.Join(basePath, path) - f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0644) + internalPath := filepath.Join(basePath, path) + f, err := os.OpenFile(internalPath, os.O_RDWR|os.O_CREATE, 0644) if err != nil { return "", err }