git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enforce pid_file_path start at "/"
[exim.git]
/
src
/
src
/
daemon.c
diff --git
a/src/src/daemon.c
b/src/src/daemon.c
index c9e6f334fd22ab73bf46d41f4381d5431809e98d..0b39fd5559bd3402cd1e780d43554db9a5951769 100644
(file)
--- 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);
}