From 5ae7360cabd34eec7d7dde6369bd7a87403b839d Mon Sep 17 00:00:00 2001 From: Kevin Klues Date: Mon, 7 Dec 2020 11:40:21 +0000 Subject: [PATCH] Fix bug in resolving absolute symlinks in find_library_paths() Previously, only relative symlinks would work since we weren't fully resolving the symlinks, but rather just joining them in the host filesystem. Signed-off-by: Kevin Klues --- src/nvc_container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvc_container.c b/src/nvc_container.c index 825d9d34..e9f0fbcd 100644 --- a/src/nvc_container.c +++ b/src/nvc_container.c @@ -192,7 +192,7 @@ find_library_paths(struct error *err, struct nvc_container *cnt) if (!(cnt->flags & OPT_COMPUTE_LIBS)) return (0); - if (path_join(err, path, cnt->cfg.rootfs, cnt->cfg.cudart_dir) < 0) + if (path_resolve_full(err, path, cnt->cfg.rootfs, cnt->cfg.cudart_dir) < 0) return (-1); if (path_append(err, path, "compat/lib*.so.*") < 0) return (-1);