From 2e1f94aedfcde95102732c26d4aaaa88b092a6aa Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 25 Aug 2023 17:38:36 +0200 Subject: [PATCH] Fix append assignments Signed-off-by: Evan Lezar --- internal/discover/ipc.go | 2 +- internal/platform-support/tegra/tegra.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/discover/ipc.go b/internal/discover/ipc.go index 9b0fc11c..f636290f 100644 --- a/internal/discover/ipc.go +++ b/internal/discover/ipc.go @@ -70,7 +70,7 @@ func (d *ipcMounts) Mounts() ([]Mount, error) { var modifiedMounts []Mount for _, m := range mounts { mount := m - mount.Options = append(m.Options, "noexec") + mount.Options = append(mount.Options, "noexec") modifiedMounts = append(modifiedMounts, mount) } diff --git a/internal/platform-support/tegra/tegra.go b/internal/platform-support/tegra/tegra.go index ad5c5b6a..563c6e28 100644 --- a/internal/platform-support/tegra/tegra.go +++ b/internal/platform-support/tegra/tegra.go @@ -51,11 +51,10 @@ func New(opts ...Option) (discover.Discover, error) { } if o.symlinkLocator == nil { - searchPaths := append(o.librarySearchPaths, "/") o.symlinkLocator = lookup.NewSymlinkLocator( lookup.WithLogger(o.logger), lookup.WithRoot(o.driverRoot), - lookup.WithSearchPaths(searchPaths...), + lookup.WithSearchPaths(append(o.librarySearchPaths, "/")...), ) }