From 80672d33af1ea318e041987470f172d2b8f49d97 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 5 Dec 2022 16:17:39 +0100 Subject: [PATCH] Continue instead of break on error when listing libraries Signed-off-by: Evan Lezar --- internal/ldcache/ldcache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ldcache/ldcache.go b/internal/ldcache/ldcache.go index c26c47ca..15115f3f 100644 --- a/internal/ldcache/ldcache.go +++ b/internal/ldcache/ldcache.go @@ -208,7 +208,7 @@ func (c *ldcache) List() ([]string, []string) { n := bytes.IndexByte(value, 0) if n < 0 { - break + continue } name := filepath.Join(c.root, strn(value, n)) @@ -217,7 +217,7 @@ func (c *ldcache) List() ([]string, []string) { path, err := filepath.EvalSymlinks(name) if err != nil { c.logger.Debugf("could not resolve symlink for %v", name) - break + continue } if processed[path] { continue