mirror of
https://github.com/FiloSottile/age.git
synced 2026-09-04 07:07:16 +00:00
plugin: correct working directory comment
Reported by Joe Doyle of Trail of Bits.
This commit is contained in:
+2
-3
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user