From 51f3f49ba0587311306eeca458a2dc67a12a2d49 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 6 Jan 2025 15:35:18 +0100 Subject: Don't fail Linux sandboxing if /usr/sbin/sendmail does not exist. --- sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sandbox.c') diff --git a/sandbox.c b/sandbox.c index 0b89205..cbe0043 100644 --- a/sandbox.c +++ b/sandbox.c @@ -94,7 +94,7 @@ LL_BEGIN(sbox_enter_linux_, const char* basedir, const char *address, int smail) LL_PATH(sdir, s); } - if (smail) + if (smail && mtime("/usr/sbin/sendmail") > 0) LL_PATH("/usr/sbin/sendmail", x); if (*address != '/') { -- cgit v1.2.3