Enforce pid_file_path start at "/"
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 18 Mar 2021 06:59:21 +0000 (07:59 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 21 Apr 2021 06:18:05 +0000 (08:18 +0200)
(cherry picked from commit 60f2a8e797d9ebaea1e3eac4ad28ff64e11bab40)

doc/doc-txt/ChangeLog
src/src/daemon.c

index 0792062bacda46a7dfa27e29a1cf2c91ccf03b7a..6f3b4413695550064faf984bca7121d3e35e1316 100644 (file)
@@ -163,6 +163,8 @@ JH/44 Bug 2701: Fix list-expansion of dns_ipv4_lookup.  Previously, it did
       dnssec_require_domains, dnssec_request_domains, srv_fail_domains,
       mx_fail_domains.
 
+HS/01 Enforce absolute PID file path name.
+
 
 Exim version 4.94
 -----------------
index fc6c011d4df943835b6f49cea4b7a9b1f3b0956d..e0c6bc9081580f5ee302a693dd55f988f5d2e06c 100644 (file)
@@ -942,6 +942,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);
 }