summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-10-11 23:52:36 +0100
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-10-11 23:52:36 +0100
commit9895e7b28a3767bbe4430cbffd3662b4ef92b37f (patch)
treef6830800db1cb110469c195c346a26585f6c50e4 /src
parent5c0b4aeb0572827877654b65bb05fb7b37a3117a (diff)
downloadirssi-9895e7b28a3767bbe4430cbffd3662b4ef92b37f.zip
Silence down a warning that would appear on "/away" in Capability mode.
Diffstat (limited to 'src')
-rw-r--r--src/core/capsicum.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/capsicum.c b/src/core/capsicum.c
index 5647a302..568b5542 100644
--- a/src/core/capsicum.c
+++ b/src/core/capsicum.c
@@ -183,6 +183,10 @@ void capsicum_mkdir_with_parents(const char *path, int mode)
char *component, *copy, *tofree;
int error, fd, newfd;
+ /* The directory already exists, nothing to do. */
+ if (strcmp(path, irclogs_path) == 0)
+ return;
+
/* +1 is for the slash separating irclogs_path and the rest. */
if (strlen(path) <= irclogs_path_len + 1 ||
path[irclogs_path_len] != '/' ||