aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo/s6-rc-set-commit.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-12-08 12:04:26 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-12-08 12:04:26 +0000
commit7e6654b43fde098df6f080c6bc57489bfe3c5095 (patch)
treedbc0bcae6b54160853d087ba843a0e60c5e011ca /src/repo/s6-rc-set-commit.c
parentc40145fca667f8b0243bbcf276b5aade18f7ae5b (diff)
downloads6-rc-7e6654b43fde098df6f080c6bc57489bfe3c5095.tar.gz
Some bugfixes
Diffstat (limited to 'src/repo/s6-rc-set-commit.c')
-rw-r--r--src/repo/s6-rc-set-commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repo/s6-rc-set-commit.c b/src/repo/s6-rc-set-commit.c
index 7612506..c4c7967 100644
--- a/src/repo/s6-rc-set-commit.c
+++ b/src/repo/s6-rc-set-commit.c
@@ -14,6 +14,7 @@
#include <skalibs/gol.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
+#include <skalibs/tai.h>
#include <skalibs/djbunix.h>
#include <s6-rc/config.h>
@@ -71,7 +72,7 @@ int main (int argc, char const *const *argv)
if (!argc) dieusage() ;
if (strchr(argv[0], '/') || strchr(argv[0], '\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]) ;
r = s6rc_repo_checkset(wgola[GOLA_REPODIR], argv[0]) ;