summaryrefslogtreecommitdiff
path: root/src/helper/slbt_archive_import.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-15 06:41:55 +0000
committermidipix <writeonce@midipix.org>2021-04-15 09:44:27 +0000
commitd385653e04a9455a5c9e34cc9a63c7de375981d7 (patch)
tree826766dbed097a65054d22a509cdeeb5d2af4328 /src/helper/slbt_archive_import.c
parente524bdc940fa8826a9d076a9b9cb250d1bad71c4 (diff)
downloadslibtool-d385653e04a9455a5c9e34cc9a63c7de375981d7.tar.bz2
slibtool-d385653e04a9455a5c9e34cc9a63c7de375981d7.tar.xz
library: replace all uses of unlink() with unlinkat().
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);