summaryrefslogtreecommitdiff
path: root/src
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 /src
parent9175da81c45d627e0da6c473a802202056c3d28b (diff)
Enforce pid_file_path start at "/"
(cherry picked from commit 60f2a8e797d9ebaea1e3eac4ad28ff64e11bab40) (cherry picked from commit 6b3d553c733475a1033c8b7a241e6506d7ed73b1)
Diffstat (limited to 'src')
-rw-r--r--src/src/daemon.c3
1 files changed, 3 insertions, 0 deletions
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);
}