gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

commit 37771daccb76e41f7718bb3e59b3d7f6bf5a205c
parent 4dffd8d6f49cc4e67a2e4685a648461673ce5f75
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon, 17 Nov 2025 18:37:26 +0900

Remove . from readwrite paths for gout_index

gout_index writes to stdout, not the current directory, so . can be
dropped from the directories we give read-write-create permissions to.

Diffstat:
Mgout_index.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gout_index.c b/gout_index.c @@ -64,8 +64,8 @@ void gout_index_options_free(GoutIndexOptions* options) { void gout_index_init(const GoutIndexOptions* options) { const char** readonly_paths = options->repo_dirs; size_t readonly_paths_count = options->repo_dir_count; - const char* readwrite_paths[2] = {".", NULL}; - size_t readwrite_paths_count = 1; + const char* readwrite_paths[1] = {NULL}; + size_t readwrite_paths_count = 0; restrict_filesystem_access(readonly_paths, readonly_paths_count, readwrite_paths, readwrite_paths_count); restrict_system_operations(kGoutIndex);