snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit c12a7e38adbce6058ee7d9d4113cce2649c87977
parent ef80717a1c8963135bafcc35dddc069305e5e182
Author: default <nobody@localhost>
Date:   Mon, 17 Feb 2025 07:49:11 +0100

Return ASAP if srv_open() fails.

Diffstat:
Mdata.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/data.c b/data.c @@ -99,6 +99,9 @@ int srv_open(const char *basedir, int auto_upgrade) if (error != NULL) srv_log(error); + if (!ret) + return ret; + /* create the queue/ subdir, just in case */ xs *qdir = xs_fmt("%s/queue", srv_basedir); mkdirx(qdir);