From 41ac2be9658b49c68cb793f3a6f0c5932d82e1c2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 10 Aug 2025 03:10:13 +0900 Subject: container/absolute: wrap safe stdlib functions These functions do not change the absoluteness of a pathname. Signed-off-by: Ophestra --- system/dbus/proc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/dbus/proc.go b/system/dbus/proc.go index ee298096..d6f98907 100644 --- a/system/dbus/proc.go +++ b/system/dbus/proc.go @@ -43,10 +43,10 @@ func (p *Proxy) Start() error { }, nil) } else { var toolPath *container.Absolute - if a, err := container.NewAbsolute(p.name); err != nil { + if a, err := container.NewAbs(p.name); err != nil { if p.name, err = exec.LookPath(p.name); err != nil { return err - } else if toolPath, err = container.NewAbsolute(p.name); err != nil { + } else if toolPath, err = container.NewAbs(p.name); err != nil { return err } } else { -- cgit v1.3.1