summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-ln.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 16:47:08 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 16:47:08 +0000
commitfbd5d278b4ead5c3d7941bc7a4bbecc7bf684f61 (patch)
tree616522f8e0496c9b170f4467cdaffb426ffb84a3 /src/skaembutils/s6-ln.c
parent68990372b2a0eb3cdf998933dc0d01b76a0ebe85 (diff)
downloads6-portable-utils-fbd5d278b4ead5c3d7941bc7a4bbecc7bf684f61.tar.xz
Adapt to skalibs-2.7.0.0
Diffstat (limited to 'src/skaembutils/s6-ln.c')
-rw-r--r--src/skaembutils/s6-ln.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/skaembutils/s6-ln.c b/src/skaembutils/s6-ln.c
index 65a650f..d600aab 100644
--- a/src/skaembutils/s6-ln.c
+++ b/src/skaembutils/s6-ln.c
@@ -12,6 +12,7 @@
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
+#include <skalibs/posixplz.h>
#include <skalibs/sgetopt.h>
#include <skalibs/strerr2.h>
#include <skalibs/stralloc.h>
@@ -61,7 +62,7 @@ static void force (char const *old, char const *new, linkfunc_t_ref doit)
strerr_diefu3sys(111, "make a link", " to ", old) ;
if (rename(satmp.s + base, new) == -1)
{
- unlink(satmp.s + base) ;
+ unlink_void(satmp.s + base) ;
strerr_diefu2sys(111, "atomically replace ", new) ;
}
satmp.len = base ;