snac2

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

commit 51f3f49ba0587311306eeca458a2dc67a12a2d49
parent 9ded9d6323ae6e78ebe316e909e577215891fd4a
Author: default <nobody@localhost>
Date:   Mon,  6 Jan 2025 15:35:18 +0100

Don't fail Linux sandboxing if /usr/sbin/sendmail does not exist.

Diffstat:
Msandbox.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 != '/') {