[pass] Bugfix for Mac's diskutil mount point issue

Allan Odgaard lists+pass at simplit.com
Mon Jun 30 14:54:05 CEST 2014


On 30 Jun 2014, at 14:43, Jason A. Donenfeld wrote:

> On Mon, Jun 30, 2014 at 2:13 PM, Allan Odgaard 
> <lists+pass at simplit.com>
> 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.


More information about the Password-Store mailing list