]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Fix mktemp template for POSIX.1 mktemp
authorGrégoire Jadi <gjadi@omecha.info>
Mon, 19 Feb 2018 17:06:48 +0000 (18:06 +0100)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 30 May 2018 16:05:47 +0000 (13:05 -0300)
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>
lib/keyringer/functions

index eb63f3eff01100123eba0433de139138a65df871..b8f91a7923a76cc2a40b03ff5e12eaa48a6e4dac 100755 (executable)
@@ -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"