plugin: correct working directory comment

Reported by Joe Doyle of Trail of Bits.
This commit is contained in:
Filippo Valsorda
2026-08-29 19:30:10 +02:00
parent 58ef9fcb8d
commit 7fcc72e15e
+2 -3
View File
@@ -457,9 +457,8 @@ func openClientConnection(name, protocol string) (*clientConnection, error) {
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
} }
// We don't want the plugins to rely on the working directory for anything // Avoid running plugins in the client's working directory, as it might
// as different clients might treat it differently, so we set it to an empty // differ between clients.
// temporary directory.
cmd.Dir = os.TempDir() cmd.Dir = os.TempDir()
if err := cmd.Start(); err != nil { if err := cmd.Start(); err != nil {