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/logic/slbt_exec_uninstall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/logic/slbt_exec_uninstall.c') diff --git a/src/logic/slbt_exec_uninstall.c b/src/logic/slbt_exec_uninstall.c index b904ef7..7e1d37a 100644 --- a/src/logic/slbt_exec_uninstall.c +++ b/src/logic/slbt_exec_uninstall.c @@ -101,7 +101,7 @@ static int slbt_exec_uninstall_fs_entry( } /* remove file or symlink entry */ - if (unlink(path)) + if (unlinkat(fdcwd,path,0)) return SLBT_SYSTEM_ERROR(dctx,path); /* remove empty containing directory? */ -- cgit v1.2.3