summaryrefslogtreecommitdiff
path: root/src/helper/slbt_archive_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/slbt_archive_import.c')
-rw-r--r--src/helper/slbt_archive_import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c
index 444c48d..071654f 100644
--- a/src/helper/slbt_archive_import.c
+++ b/src/helper/slbt_archive_import.c
@@ -149,10 +149,10 @@ int slbt_archive_import(
0);
if (dst == mridst)
- unlink(dst);
+ unlinkat(fdcwd,dst,0);
if (src == mrisrc)
- unlink(src);
+ unlinkat(fdcwd,src,0);
return (rpid == pid) && (ectx->exitcode == 0)
? 0 : SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_ARCHIVE_IMPORT);