From f0509f8b2b8df704226a94e9af8c06c3065234d4 Mon Sep 17 00:00:00 2001 From: grunfink Date: Wed, 4 Jun 2025 06:38:44 +0200 Subject: Minor tweak. --- sandbox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sandbox.c') diff --git a/sandbox.c b/sandbox.c index a172f46..c6cfdcb 100644 --- a/sandbox.c +++ b/sandbox.c @@ -13,12 +13,13 @@ void sbox_enter(const char *basedir) return; } - int smail = !xs_is_true(xs_dict_get(srv_config, "disable_email_notifications")); - + int smail; const char *url = xs_dict_get(srv_config, "smtp_url"); if (xs_is_string(url) && *url) smail = 0; + else + smail = !xs_is_true(xs_dict_get(srv_config, "disable_email_notifications")); srv_debug(1, xs_fmt("Calling unveil()")); unveil(basedir, "rwc"); -- cgit v1.2.3