From 71f47c3291396e051e1c097f1d6050a4d0853116 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 22 Oct 2026 14:40:09 +0200 Subject: [PATCH] issue 1841/S5: refuse the root helper's new maps act too until its client is built in --- modules/pacman/cmd/pacman-tools/keeper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/pacman/cmd/pacman-tools/keeper.go b/modules/pacman/cmd/pacman-tools/keeper.go index 92c1ee44..ece3640d 100644 --- a/modules/pacman/cmd/pacman-tools/keeper.go +++ b/modules/pacman/cmd/pacman-tools/keeper.go @@ -195,6 +195,10 @@ func (noRoot) Journal(unit string, n int) ([]string, error) { return nil, errors.New("the root helper's client is not built in yet: no journal can be read") } +func (noRoot) Maps() ([]Mapped, error) { + return nil, errors.New("the root helper's client is not built in yet: no process's maps can be read") +} + // Keeper is the module's process on one node. type Keeper struct { Node string