summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Jadi <gjadi@omecha.info>2018-02-19 18:06:48 +0100
committerSilvio Rhatto <rhatto@riseup.net>2018-05-30 13:05:47 -0300
commitffe513c0a851cbdd42ec458def9be15551d03e6e (patch)
treec22c90d6712bc6e3e4e19b57d232f4482f21ca68
parent2a8faa9928b1cbd937bffc1a9918edf07ee39245 (diff)
downloadkeyringer-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>
-rwxr-xr-xlib/keyringer/functions2
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"