summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2021-03-18 07:59:21 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2021-05-27 21:30:19 +0200
commitcdee66a2abd6e3f2da6efc36f8efd4b5dd46ce4c (patch)
tree59d5a345311b253b55e847ddeb2e901adfbe30b9
parent9175da81c45d627e0da6c473a802202056c3d28b (diff)
Enforce pid_file_path start at "/"
(cherry picked from commit 60f2a8e797d9ebaea1e3eac4ad28ff64e11bab40) (cherry picked from commit 6b3d553c733475a1033c8b7a241e6506d7ed73b1)
-rw-r--r--doc/doc-txt/ChangeLog2
-rw-r--r--src/src/daemon.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index df6efeea3..d66dc64d1 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -252,6 +252,8 @@ JH/53 Bug 2743: fix immediate-delivery via named queue. Previously this would
fail with a taint-check on the spoolfile name, and leave the message
queued.
+HS/01 Enforce absolute PID file path name.
+
Exim version 4.94
-----------------
diff --git a/src/src/daemon.c b/src/src/daemon.c
index c9e6f334f..0b39fd555 100644
--- a/src/src/daemon.c
+++ b/src/src/daemon.c
@@ -939,6 +939,9 @@ if (override_pid_file_path)
if (!*pid_file_path)
pid_file_path = string_sprintf("%s/exim-daemon.pid", spool_directory);
+
+if (pid_file_path[0] != '/')
+ log_write(0, LOG_PANIC_DIE, "pid file path %s must be absolute\n", pid_file_path);
}