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 --- ldd/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldd/exec.go') diff --git a/ldd/exec.go b/ldd/exec.go index ac311fa2..cb0fec75 100644 --- a/ldd/exec.go +++ b/ldd/exec.go @@ -29,7 +29,7 @@ func Exec(ctx context.Context, p string) ([]*Entry, error) { var toolPath *container.Absolute if s, err := exec.LookPath(lddName); err != nil { return nil, err - } else if toolPath, err = container.NewAbsolute(s); err != nil { + } else if toolPath, err = container.NewAbs(s); err != nil { return nil, err } -- cgit v1.3.1