Skip to content

Commit

Permalink
Merge branch 'upstream-fix-library-paths' into 'master'
Browse files Browse the repository at this point in the history
Fix bug in resolving absolute symlinks in find_library_paths()

See merge request nvidia/container-toolkit/libnvidia-container!44
  • Loading branch information
klueska committed Dec 8, 2020
2 parents 31674b9 + 5ae7360 commit 3883db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvc_container.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3883db3

Please sign in to comment.