diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_link.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 97e3276..09a3928 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -494,9 +494,15 @@ static int slbt_exec_link_adjust_argument_vector( if ((fd = openat(fdcwd,ldir,O_DIRECTORY,0)) < 0) *mark = 0; - else + else { close(fd); + if ((ret = slbt_emit_fdwrap_amend_dl_path( + dctx,ectx,depsmeta,"%s",ldir)) < 0) { + return ret; + } + } + *aarg++ = *carg++; } else if (**carg == '-') { |