mirror of
https://github.com/FiloSottile/age.git
synced 2026-09-04 15:17:04 +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
|
||||
}
|
||||
|
||||
// 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 {
|
||||
|
||||
Reference in New Issue
Block a user