diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-14 13:32:49 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-14 13:32:49 +0000 |
| commit | 331d019eeb1104d4baa6af1d11ad228793b8d97f (patch) | |
| tree | 7a9c8142d587844f23a1bde3432a4f7d57ecd2df /src/s6/process_status.c | |
| parent | 7d717a323bbc1558ee7710b3598c681388748652 (diff) | |
| download | s6-frontend-331d019eeb1104d4baa6af1d11ad228793b8d97f.tar.gz | |
Set up configurable policy infrastructure
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/s6/process_status.c')
| -rw-r--r-- | src/s6/process_status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s6/process_status.c b/src/s6/process_status.c index 2240c85..96eb84b 100644 --- a/src/s6/process_status.c +++ b/src/s6/process_status.c @@ -87,7 +87,7 @@ static gol_bool const process_status_golb[1] = int process_status (char const *const *argv) { - size_t scandirlen = strlen(g->scandir) ; + size_t scandirlen = strlen(g->dirs.scan) ; uint64_t golb = 0 ; int e = 0 ; PROG = "s6 process status" ; @@ -99,7 +99,7 @@ int process_status (char const *const *argv) { size_t len = strlen(*argv) ; char path[scandirlen + len + 2] ; - memcpy(path, g->scandir, scandirlen) ; + memcpy(path, g->dirs.scan, scandirlen) ; path[scandirlen] = '/' ; memcpy(path + scandirlen + 1, *argv, len+1) ; if (do_status(path, !!(golb & 1 << PROCESS_STATUS_GOLB_WITHLOGS))) e = 1 ; |
