diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-07-29 10:32:24 +0100 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-07-29 23:52:23 +0100 |
commit | e777ae986d64863a444132885b160ab2e9c7458e (patch) | |
tree | 67f8ad54c5d61710f035dbdf26ad058514542914 /src/core/log.c | |
parent | 241dd66ac11d54b37c671cd56f1320fe5b83803d (diff) | |
download | irssi-e777ae986d64863a444132885b160ab2e9c7458e.zip |
Working autolog.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
Diffstat (limited to 'src/core/log.c')
-rw-r--r-- | src/core/log.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/log.c b/src/core/log.c index 00686bee..9394263f 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -127,7 +127,14 @@ int log_start_logging(LOG_REC *log) /* path may contain variables (%time, $vars), make sure the directory is created */ dir = g_path_get_dirname(log->real_fname); +#ifdef HAVE_CAPSICUM + if (capsicum_enabled()) + capsicum_mkdir_with_parents(dir, log_dir_create_mode); + else + g_mkdir_with_parents(dir, log_dir_create_mode); +#else g_mkdir_with_parents(dir, log_dir_create_mode); +#endif g_free(dir); } |