diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-06 02:49:58 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-06 02:49:58 +0000 |
| commit | 9eee47d2db84cca8fecc3cd33e853d3d39277cda (patch) | |
| tree | 7b0c5bcc9f331fe1c274231e5bfe2a28ec191159 /src/libs6f | |
| parent | d831d111b8176875cd0e83de798d6c3f5ec593c6 (diff) | |
| download | s6-frontend-9eee47d2db84cca8fecc3cd33e853d3d39277cda.tar.gz | |
Fill out help files, change storepath into storelist
Diffstat (limited to 'src/libs6f')
| -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 5617bf9..6e79a7a 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, stmppos ; + size_t scanpos, livepos, repopos, bootpos, stmppos, stolpos ; size_t homelen = 0 ; struct passwd *pw = 0 ; char const *home = 0 ; @@ -76,6 +76,11 @@ void s6f_user_get_confdirs (s6f_confdirs *dirs, stralloc *storage) || !stralloc_cats(storage, "/s6-frontend") || !stralloc_0(storage)) dienomem() ; + stolpos = storage->len ; + if (!(datahome ? stralloc_cats(storage, datahome) : stralloc_cats(storage, home) && stralloc_cats(storage, "/.local/share")) + || !stralloc_cats(storage, "/s6-frontend/s6-rc/sources") + || !stralloc_0(storage)) dienomem() ; + /* Don't add to storage past this point */ dirs->scan = storage->s + scanpos ; @@ -83,4 +88,5 @@ void s6f_user_get_confdirs (s6f_confdirs *dirs, stralloc *storage) dirs->repo = storage->s + repopos ; dirs->boot = storage->s + bootpos ; dirs->stmp = storage->s + stmppos ; + dirs->stol = storage->s + stolpos ; } |
