On 30 Jun 2014, at 14:43, Jason A. Donenfeld wrote:
On Mon, Jun 30, 2014 at 2:13 PM, Allan Odgaard
<[email protected]>
wrote:
mktemp [-d] "${TMPDIR:-/tmp}/$template"
Convinced.
http://git.zx2c4.com/password-store/commit/?id=78a56a4d7b7d74ded10436f9d1e972cc47807cab
Awesome, thanks!
Minor issue: At least for BSD’s mktemp, the X’es must be trailing,
so one can’t add the extension to the template itself :(
But SECURE_TMPDIR is exclusive to the invocation of ‘pass’, right?
If so there is actually no need for a unique name and this should be
safe:
local tmp_file="$SECURE_TMPDIR/password.txt"
Could even use the password item’s name for improved usability.
_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store