Skip to content

Commit

Permalink
Fix always using fallback
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Nov 28, 2024
1 parent 8fe3262 commit f6a92a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nvc_ldcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,11 @@ nvc_ldcache_update(struct nvc_context *ctx, const struct nvc_container *cnt)
* Force proc to be remounted since we're creating a PID namespace and fexecve depends on it.
*/
++argv[0];
if ((fd = open_as_memfd(&ctx->err, argv[0])) < 0)
if ((fd = open_as_memfd(&ctx->err, argv[0])) < 0) {
log_warn("failed to create virtual copy of the ldconfig binary");
if ((fd = xopen(&ctx->err, argv[0], O_RDONLY|O_CLOEXEC)) < 0)
return (-1);
}
host_ldconfig = true;
log_infof("executing %s from host at %s", argv[0], cnt->cfg.rootfs);
} else {
Expand Down

0 comments on commit f6a92a5

Please sign in to comment.