--- lbbs/src/main.c 2025/05/29 00:52:09 1.47 +++ lbbs/src/main.c 2025/05/29 09:44:01 1.48 @@ -23,6 +23,7 @@ #include "menu.h" #include "file_loader.h" #include "section_list_loader.h" +#include #include #include #include @@ -149,6 +150,14 @@ int main(int argc, char *argv[]) return -2; } + // Check article cache dir + ret = mkdir(VAR_ARTICLE_CACHE_DIR, S_IRWXU | S_IRGRP); + if (ret == -1 && errno != EEXIST) + { + log_error("mkdir(%s) error (%d)\n", VAR_ARTICLE_CACHE_DIR, errno); + goto cleanup; + } + // Initialize data pools if ((fp = fopen(VAR_TRIE_DICT_SHM, "w")) == NULL) {