aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo/s6-rc-set-copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo/s6-rc-set-copy.c')
-rw-r--r--src/repo/s6-rc-set-copy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repo/s6-rc-set-copy.c b/src/repo/s6-rc-set-copy.c
index 21b9cda..637093d 100644
--- a/src/repo/s6-rc-set-copy.c
+++ b/src/repo/s6-rc-set-copy.c
@@ -9,6 +9,7 @@
#include <skalibs/prog.h>
#include <skalibs/strerr.h>
#include <skalibs/gol.h>
+#include <skalibs/tai.h>
#include <skalibs/djbunix.h>
#include <skalibs/unix-transactional.h>
@@ -122,6 +123,7 @@ int main (int argc, char const *const *argv)
if (strchr(argv[i], '/') || strchr(argv[i], '\n'))
strerr_dief1x(100, "set names cannot contain / or newlines") ;
+ tain_now_g() ;
fdlock = s6rc_repo_lock(wgola[GOLA_REPODIR], 1) ;
if (fdlock == -1) strerr_diefu2sys(111, "lock ", wgola[GOLA_REPODIR]) ;
docopy(wgola[GOLA_REPODIR], argv[0], argv[1]) ;