From 4285e8859353c31b39fa9539a89e58dc3a020264 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 17 Aug 2018 21:49:39 +0200 Subject: Rewrite of io_init() The introduction of the "-C " option is an opportunity to review the initialization of data paths. It lead to a rewrite. Two "root" directories are used (data and configuration files); by default they are identical. The statically allocated path buffers are turned into dynamically allocated buffers. Missing files/directories now include hooks. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/args.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/args.c') diff --git a/src/args.c b/src/args.c index 9e22d8d..e166f5a 100644 --- a/src/args.c +++ b/src/args.c @@ -727,8 +727,10 @@ int parse_args(int argc, char **argv) from = date_sec_change(to, 0, range); io_init(cfile, datadir, confdir); - io_check_dir(path_dir); + io_check_dir(path_ddir); io_check_dir(path_notes); + io_check_dir(path_cdir); + io_check_dir(path_hooks); vars_init(); if (status) { -- cgit v1.2.3-54-g00ecf