diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-18 18:58:34 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-18 18:58:34 +0000 |
| commit | 8a6eaed305dbe4ec6a87fe37000f7461bf563937 (patch) | |
| tree | c80d489ba6852447f56eb805e0ada4005b94b89f /src/libs6f/s6f_user_get_confdirs.c | |
| parent | 83622b9b37821cccab3c535209200b9ccd2ba6a3 (diff) | |
| download | s6-frontend-8a6eaed305dbe4ec6a87fe37000f7461bf563937.tar.gz | |
Add a lot of stuff, implement basic service_start
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6f/s6f_user_get_confdirs.c')
| -rw-r--r-- | src/libs6f/s6f_user_get_confdirs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs6f/s6f_user_get_confdirs.c b/src/libs6f/s6f_user_get_confdirs.c index badbea0..b062650 100644 --- a/src/libs6f/s6f_user_get_confdirs.c +++ b/src/libs6f/s6f_user_get_confdirs.c @@ -16,7 +16,7 @@ void s6f_user_get_confdirs (s6f_confdirs *dirs, stralloc *storage) { - size_t scanpos, livepos, repopos, bootpos ; + size_t scanpos, livepos, repopos, bootpos, stmppos ; size_t homelen = 0 ; struct passwd *pw = 0 ; char const *home = 0 ; @@ -71,10 +71,16 @@ void s6f_user_get_confdirs (s6f_confdirs *dirs, stralloc *storage) || !stralloc_cats(storage, "/s6-rc") || !stralloc_0(storage)) dienomem() ; + stmppos = storage->len ; + if (!stralloc_cats(storage, runtime) + || !stralloc_cats(storage, "/s6-frontend") + || !stralloc_0(storage)) dienomem() ; + /* Don't add to storage past this point */ dirs->scan = storage->s + scanpos ; dirs->live = storage->s + livepos ; dirs->repo = storage->s + repopos ; dirs->boot = storage->s + bootpos ; + dirs->stmp = storage->s + stmppos ; } |
