aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-06 15:35:18 +0100
committerdefault <nobody@localhost>2025-01-06 15:35:18 +0100
commit51f3f49ba0587311306eeca458a2dc67a12a2d49 (patch)
tree5d646d1dbd4455c6d1be61aca30c3b18e6a90e7a
parent9ded9d6323ae6e78ebe316e909e577215891fd4a (diff)
Don't fail Linux sandboxing if /usr/sbin/sendmail does not exist.
-rw-r--r--sandbox.c2
1 files changed, 1 insertions, 1 deletions
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 != '/') {