From: Simon Ruderich Date: Wed, 21 Apr 2021 06:16:03 +0000 (+0200) Subject: rpc: always create remote helper with user's group X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=3840c3fe7fab425ef7d20d2f686884b404bb5e62;p=safcm%2Fsafcm.git rpc: always create remote helper with user's group If the group does not match the current user's group then the remote helper will be uploaded again on each run. --- diff --git a/rpc/dial.go b/rpc/dial.go index ef28019..d8a6338 100644 --- a/rpc/dial.go +++ b/rpc/dial.go @@ -181,6 +181,8 @@ f() { rm "$tmp" # Make file executable chmod 0700 "$x" + # Some BSD create files with group wheel in /tmp + chgrp "$(id -g)" "$x" fi exec "$x" sync