commit:     3f0f8227ade6d70b974b86cc270dfb654b34e7ff
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 13 17:21:18 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Dec 13 17:22:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f0f8227

net-misc/peervpn: use chown -h for posix compat

Package-Manager: portage-2.3.3

 net-misc/peervpn/files/peervpn.initd | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net-misc/peervpn/files/peervpn.initd 
b/net-misc/peervpn/files/peervpn.initd
index 0f891b3..b607ec3 100644
--- a/net-misc/peervpn/files/peervpn.initd
+++ b/net-misc/peervpn/files/peervpn.initd
@@ -27,7 +27,6 @@ start_pre() {
 }
 
 start_post() {
-       # Use --no-dereference to prevent privilege escalation
-       # attacks. Fixes bug #602550.
-       chown --no-dereference "${user}":"${group}" "${logfile}"
+       # Use -h to prevent privilege escalation attacks. Fixes bug #602550.
+       chown -h "${user}":"${group}" "${logfile}"
 }

Reply via email to