]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - rpc/dial.go
rpc: always create remote helper with user's group
[safcm/safcm.git] / rpc / dial.go
index ef280191ef57b23ca8f03461a97af206e23ecc67..d8a63386333d2c76c27affca33418d3378bcc4dc 100644 (file)
@@ -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