diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-10-05 18:16:38 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-10-05 18:16:38 +0000 |
| commit | 55850e313752497880ffde33870540b0b57814c1 (patch) | |
| tree | caaa72d69ca4b14ccd1652f260001e0cc360fa0d /src/repo/s6rc_repo_compile.c | |
| parent | f706ab3b309a4c9a0425ac23d5ffff7ead48fcb2 (diff) | |
| download | s6-rc-55850e313752497880ffde33870540b0b57814c1.tar.gz | |
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.
Diffstat (limited to 'src/repo/s6rc_repo_compile.c')
| -rw-r--r-- | src/repo/s6rc_repo_compile.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 <s6-rc/config.h> #include <s6-rc/repo.h> -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++) |
