From 3840c3fe7fab425ef7d20d2f686884b404bb5e62 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 21 Apr 2021 08:16:03 +0200 Subject: [PATCH] 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. --- rpc/dial.go | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2