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/?p=safcm%2Fsafcm.git;a=commitdiff_plain;h=3840c3fe7fab425ef7d20d2f686884b404bb5e62;hp=64a43bef32b144ce9894815a92f7083306f7ef1e 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