From d385653e04a9455a5c9e34cc9a63c7de375981d7 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 15 Apr 2021 06:41:55 +0000 Subject: library: replace all uses of unlink() with unlinkat(). --- src/helper/slbt_archive_import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper') 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); -- cgit v1.2.3