From 4b68de84181938381f604064336b0342e389c551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Soul=C3=A9?= Date: Sat, 28 Dec 2019 19:54:28 +0100 Subject: [PATCH] FreeBSD init: PID file should not be executable (#2945) --- dist/init/freebsd/caddy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/init/freebsd/caddy b/dist/init/freebsd/caddy index a2af50b51..654b4cf1a 100755 --- a/dist/init/freebsd/caddy +++ b/dist/init/freebsd/caddy @@ -80,7 +80,7 @@ caddy_startprecmd() rc_flags="" if [ ! -e "${pidfile}" ]; then - install -o "${caddy_user}" -g "${caddy_group}" "/dev/null" "${pidfile}" + install -m 644 -o "${caddy_user}" -g "${caddy_group}" "/dev/null" "${pidfile}" fi }