Subject: nncp-exec -use-tmp path

From: John Goerzen <[email-masked]>
Date: Fri, 15 Jan 2021 14:42:43 -0600

Hi Sergey,

Thanks again for all the work you're doing on NNCP.

I noticed an odd behavior with nncp-exec -use-tmp; it's creating a 
temporary file in /tmp instead of the spool directory like the 
other commands (especially nncp-file -) are doing (or at least are 
documented to be doing).  This resulted in a failure since my /tmp 
filled up once.

Anyhow, poking around in the code, I think that's due to to the 
call to ioutil.TempFile in src/tx.go instead of using NewTmpFile 
(defined in tmp.go).

Thanks!

- John