From: Grégoire Jadi Date: Mon, 19 Feb 2018 17:06:48 +0000 (+0100) Subject: Fix mktemp template for POSIX.1 mktemp X-Git-Tag: 0.5.3~8 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ffe513c0a851cbdd42ec458def9be15551d03e6e;p=keyringer.git 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 --- 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"