summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index be70ad5..13efa37 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -658,6 +658,7 @@ static int slbt_init_host_params(
struct slbt_host_params * host,
struct slbt_host_params * cfgmeta)
{
+ int fdcwd;
int arprobe;
int arfd;
int ecode;
@@ -873,9 +874,12 @@ static int slbt_init_host_params(
cfgmeta->ar = cfgnative;
}
+ /* fdcwd */
+ fdcwd = slbt_driver_fdcwd(dctx);
+
/* clean up */
if (arfd >= 0) {
- unlink(archivename);
+ unlinkat(fdcwd,archivename,0);
close(arfd);
}
}