From 4a8a370c86d77c1cc4eeddf3d3c410cae6bf2276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20B=C3=B6nisch?= Date: Sat, 25 Jul 2026 18:56:31 +0200 Subject: [PATCH] Fix sendmail executable permission check --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index c4457478..445e6b51 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1159,7 +1159,7 @@ fn validate_config(cfg: &ConfigItems, on_update: bool) -> Result<(), Error> { #[cfg(unix)] { use std::os::unix::fs::PermissionsExt; - if !metadata.permissions().mode() & 0o111 != 0 { + if metadata.permissions().mode() & 0o111 == 0 { err!(format!("sendmail command at `{path:?}` isn't executable")); } }