plugin: correct working directory comment
Reported by Joe Doyle of Trail of Bits.
This commit is contained in:
parent
58ef9fcb8d
commit
7fcc72e15e
1 changed files with 2 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue