From 7fcc72e15ee4240e211fb9b4e5522d8a91c36d8d Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Sat, 29 Aug 2026 19:01:32 +0200 Subject: [PATCH] plugin: correct working directory comment Reported by Joe Doyle of Trail of Bits. --- plugin/client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/client.go b/plugin/client.go index 5bf0141..9654ff6 100644 --- a/plugin/client.go +++ b/plugin/client.go @@ -457,9 +457,8 @@ func openClientConnection(name, protocol string) (*clientConnection, error) { cmd.Stderr = os.Stderr } - // We don't want the plugins to rely on the working directory for anything - // as different clients might treat it differently, so we set it to an empty - // temporary directory. + // Avoid running plugins in the client's working directory, as it might + // differ between clients. cmd.Dir = os.TempDir() if err := cmd.Start(); err != nil {