git: 073656063b7c - 2021Q2 - sysutils/zrepl: pidfile should be world-readable

Lewis Cook lcook at FreeBSD.org
Fri Jun 4 10:26:17 UTC 2021


The branch 2021Q2 has been updated by lcook:

URL: https://cgit.FreeBSD.org/ports/commit/?id=073656063b7ce50ecfb7851bdc02966eb54d783b

commit 073656063b7ce50ecfb7851bdc02966eb54d783b
Author:     Alan Somers <asomers at FreeBSD.org>
AuthorDate: 2021-06-04 10:15:57 +0000
Commit:     Lewis Cook <lcook at FreeBSD.org>
CommitDate: 2021-06-04 10:24:14 +0000

    sysutils/zrepl: pidfile should be world-readable
    
    PR:     255981
    
    (cherry picked from commit 2a866a1b4fd0e2ce6d07904c920f98e7d994bd59)
---
 sysutils/zrepl/Makefile       | 1 +
 sysutils/zrepl/files/zrepl.in | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sysutils/zrepl/Makefile b/sysutils/zrepl/Makefile
index 38ded8f82ac8..124fc8f2eff4 100644
--- a/sysutils/zrepl/Makefile
+++ b/sysutils/zrepl/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	zrepl
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.4.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	lcook at FreeBSD.org
diff --git a/sysutils/zrepl/files/zrepl.in b/sysutils/zrepl/files/zrepl.in
index 128cd406f652..57a4d48ce0b6 100644
--- a/sysutils/zrepl/files/zrepl.in
+++ b/sysutils/zrepl/files/zrepl.in
@@ -54,8 +54,8 @@ extra_commands="configtest"
 zrepl_precmd()
 {
 	if [ ! -d "/var/run/zrepl/stdinserver" ]; then
-		install -d -g ${zrepl_group} -o ${zrepl_user} -m 0700 -- "/var/run/zrepl";
-		install -d -g ${zrepl_group} -o ${zrepl_user} -m 0700 -- "/var/run/zrepl/stdinserver";
+		install -d -g ${zrepl_group} -o ${zrepl_user} -m 0755 -- "/var/run/zrepl";
+		install -d -g ${zrepl_group} -o ${zrepl_user} -m 0755 -- "/var/run/zrepl/stdinserver";
 	fi
 
 	if [ ! -e "${pidfile}" ]; then


More information about the dev-commits-ports-branches mailing list