Skip to content

Commit f6a92a5

Browse files
committed
Fix always using fallback
Signed-off-by: Evan Lezar <[email protected]>
1 parent 8fe3262 commit f6a92a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nvc_ldcache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,11 @@ nvc_ldcache_update(struct nvc_context *ctx, const struct nvc_container *cnt)
478478
* Force proc to be remounted since we're creating a PID namespace and fexecve depends on it.
479479
*/
480480
++argv[0];
481-
if ((fd = open_as_memfd(&ctx->err, argv[0])) < 0)
481+
if ((fd = open_as_memfd(&ctx->err, argv[0])) < 0) {
482482
log_warn("failed to create virtual copy of the ldconfig binary");
483483
if ((fd = xopen(&ctx->err, argv[0], O_RDONLY|O_CLOEXEC)) < 0)
484484
return (-1);
485+
}
485486
host_ldconfig = true;
486487
log_infof("executing %s from host at %s", argv[0], cnt->cfg.rootfs);
487488
} else {

0 commit comments

Comments
 (0)