[packages/exim] Rel 2; init refuses a config whose exim_path names another binary

arekm arekm at pld-linux.org
Mon Nov 2 13:15:14 CET 2026


commit 7a691dd29a80ba218c7a36a1ee3eedc4962c1e90
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Nov 2 13:14:07 2026 +0100

    Rel 2; init refuses a config whose exim_path names another binary

 exim.init | 12 ++++++++++++
 exim.spec |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/exim.spec b/exim.spec
index 3afc159..15a3373 100644
--- a/exim.spec
+++ b/exim.spec
@@ -23,7 +23,7 @@ Summary(pl.UTF-8):	Agent Transferu Poczty Uniwersytetu w Cambridge
 Summary(pt_BR.UTF-8):	Servidor de correio eletrônico exim
 Name:		exim
 Version:	4.100.1
-Release:	1
+Release:	2
 Epoch:		2
 License:	GPL v2+
 Group:		Networking/Daemons/SMTP
diff --git a/exim.init b/exim.init
index d684c12..618019d 100755
--- a/exim.init
+++ b/exim.init
@@ -63,12 +63,24 @@ checkconfig() {
 }
 
 start() {
+	local exim_path
+
 	# Start daemons.
 	if [ -f /var/lock/subsys/exim ]; then
 		msg_already_running "Exim"
 		return
 	fi
 
+	# a config naming another binary belongs to another instance (its own init script, spool and pid)
+	exim_path=$(exim -bP -C "$EXIM_CONFIG" exim_path 2>/dev/null)
+	exim_path=${exim_path#exim_path = }
+	if [ -n "$exim_path" ] && [ "$exim_path" != /usr/bin/exim ]; then
+		msg_starting "Exim"; fail
+		nls '%s sets exim_path = %s; start that instance instead' "$EXIM_CONFIG" "$exim_path"
+		RETVAL=6
+		return
+	fi
+
 	msg_starting "Exim"
 	daemon /usr/bin/exim \
 		-oP /var/spool/exim/exim-daemon.pid \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/exim.git/commitdiff/7a691dd29a80ba218c7a36a1ee3eedc4962c1e90



More information about the pld-cvs-commit mailing list