diff options
| author | Grégoire Jadi <gjadi@omecha.info> | 2018-02-19 18:06:48 +0100 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-30 13:05:47 -0300 |
| commit | ffe513c0a851cbdd42ec458def9be15551d03e6e (patch) | |
| tree | c22c90d6712bc6e3e4e19b57d232f4482f21ca68 /lib | |
| parent | 2a8faa9928b1cbd937bffc1a9918edf07ee39245 (diff) | |
| download | keyringer-ffe513c0a851cbdd42ec458def9be15551d03e6e.tar.gz keyringer-ffe513c0a851cbdd42ec458def9be15551d03e6e.tar.bz2 | |
Fix mktemp template for POSIX.1 mktemp
OpenBSD doesn't understand the XXXXXX.keyringer format.
According to POSIX.1, the six Xs must be at the end of the template.
Signed-off-by: Silvio Rhatto <rhatto@riseup.net>
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/keyringer/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions index eb63f3e..b8f91a7 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -161,7 +161,7 @@ function keyringer_set_tmpfile { if [ -z "$1" ]; then template="$tmp/keyringer.XXXXXXXXXX" else - template="$tmp/XXXXXXXXXX.$1" + template="$tmp/keyringer.$1.XXXXXXXXXX" fi mkdir -p "$tmp" |
