summaryrefslogtreecommitdiff
path: root/src/core/rawlog.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-07-29 10:32:24 +0100
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-07-29 23:52:23 +0100
commite777ae986d64863a444132885b160ab2e9c7458e (patch)
tree67f8ad54c5d61710f035dbdf26ad058514542914 /src/core/rawlog.c
parent241dd66ac11d54b37c671cd56f1320fe5b83803d (diff)
downloadirssi-e777ae986d64863a444132885b160ab2e9c7458e.zip
Working autolog.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
Diffstat (limited to 'src/core/rawlog.c')
-rw-r--r--src/core/rawlog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/rawlog.c b/src/core/rawlog.c
index 5df02981..dd86af7c 100644
--- a/src/core/rawlog.c
+++ b/src/core/rawlog.c
@@ -167,7 +167,14 @@ void rawlog_save(RAWLOG_REC *rawlog, const char *fname)
int f;
dir = g_path_get_dirname(fname);
- g_mkdir_with_parents(dir, log_dir_create_mode);
+#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);
path = convert_home(fname);