From 9895e7b28a3767bbe4430cbffd3662b4ef92b37f Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Wed, 11 Oct 2017 23:52:36 +0100 Subject: Silence down a warning that would appear on "/away" in Capability mode. --- src/core/capsicum.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/capsicum.c') 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] != '/' || -- cgit v1.2.3