aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo/s6-rc-set-commit.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-12-09 05:46:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-12-09 05:46:14 +0000
commit420d8cef5cb8eed461a1b17dcd17de270571baf9 (patch)
tree65ff04a3a64ef12bc3553b90b1b0c33887f4fb2d /src/repo/s6-rc-set-commit.c
parentb1903e7ebc0f017c4f630ed9bc5a3ba823e0be86 (diff)
downloads6-rc-420d8cef5cb8eed461a1b17dcd17de270571baf9.tar.gz
Next batch of fixes
Diffstat (limited to 'src/repo/s6-rc-set-commit.c')
-rw-r--r--src/repo/s6-rc-set-commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repo/s6-rc-set-commit.c b/src/repo/s6-rc-set-commit.c
index c4c7967..e5a3619 100644
--- a/src/repo/s6-rc-set-commit.c
+++ b/src/repo/s6-rc-set-commit.c
@@ -70,8 +70,8 @@ int main (int argc, char const *const *argv)
if (wgola[GOLA_VERBOSITY] && !uint0_scan(wgola[GOLA_VERBOSITY], &verbosity))
strerr_dief1x(100, "verbosity needs to be an unsigned integer") ;
if (!argc) dieusage() ;
- if (strchr(argv[0], '/') || strchr(argv[0], '\n'))
- strerr_dief1x(100, "set names cannot contain / or newlines") ;
+ s6rc_repo_sanitize_setname(argv[0]) ;
+
tain_now_g() ;
fdlock = s6rc_repo_lock(wgola[GOLA_REPODIR], 1) ;
if (fdlock == -1) strerr_diefu2sys(111, "lock ", wgola[GOLA_REPODIR]) ;