From 55850e313752497880ffde33870540b0b57814c1 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 5 Oct 2026 18:16:38 +0000 Subject: Propagate -L catchall changes to s6-rc-set-commit s6-rc-set-install is undergoing changes, it might not work properly. The rest is coming this week. --- src/repo/s6rc_repo_compile.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/repo/s6rc_repo_compile.c') diff --git a/src/repo/s6rc_repo_compile.c b/src/repo/s6rc_repo_compile.c index 83fa744..bfb7639 100644 --- a/src/repo/s6rc_repo_compile.c +++ b/src/repo/s6rc_repo_compile.c @@ -16,7 +16,7 @@ #include #include -int s6rc_repo_compile (char const *repo, char const *set, char const *const *rxs, uint8_t nrxs, char *oldc, unsigned int verbosity, char const *fdhuser) +int s6rc_repo_compile (char const *repo, char const *set, char const *const *rxs, uint8_t nrxs, char *oldc, unsigned int verbosity, char const *fdhuser, char const *catchall) { size_t repolen = strlen(repo) ; size_t setlen = strlen(set) ; @@ -38,7 +38,7 @@ int s6rc_repo_compile (char const *repo, char const *set, char const *const *rxs pid_t pid ; size_t m = 0 ; int wstat ; - char const *argv[9 + nrxs] ; + char const *argv[11 + nrxs] ; char fmtv[UINT_FMT] ; char src[nrxs * (repolen + 10 + (needprefix ? setlen + 1 : 0)) + totrxlen] ; char *w = src ; @@ -52,6 +52,11 @@ int s6rc_repo_compile (char const *repo, char const *set, char const *const *rxs argv[m++] = "-h" ; argv[m++] = fdhuser ; } + if (catchall) + { + argv[m++] = "-L" ; + argv[m++] = catchall ; + } argv[m++] = "--" ; argv[m++] = newc ; for (uint8_t i = 0 ; i < nrxs ; i++) -- cgit v1.3.1