summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-26 19:08:54 -0500
committerJune McEnroe <june@causal.agency>2021-02-26 19:08:54 -0500
commit7e12bc7618efd97a5d205d22598738f40e8afa51 (patch)
tree1c8a8775da6fe5d44f44e23cac0764978cc4c324
parentLower sctd temperature (diff)
downloadsrc-7e12bc7618efd97a5d205d22598738f40e8afa51.tar.gz
src-7e12bc7618efd97a5d205d22598738f40e8afa51.zip
Make mktemp -t compatible with OpenBSD
Such an annoyance that this flag is incompatible between FreeBSD
and OpenBSD. On FreeBSD it takes an argument, on OpenBSD it does
not. Doing it this way is technically compatible with both, but on
FreeBSD the generated file name has an extra .XXXXXXXXXX in it. Oh
well.
-rw-r--r--doc/rfc/rfc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rfc/rfc.in b/doc/rfc/rfc.in
index adf297eb..958b09da 100644
--- a/doc/rfc/rfc.in
+++ b/doc/rfc/rfc.in
@@ -2,7 +2,7 @@
 set -eu
 
 rfc=%%PREFIX%%/share/rfc/"rfc${1:--index}.txt"
-tags=$(mktemp -t rfc)
+tags=$(mktemp -t rfc.XXXXXXXXXX)
 trap 'rm "${tags}"' EXIT
 %%PREFIX%%/bin/rfctags "${rfc}" >"${tags}"
 ${PAGER:-less} -T "${tags}" "${rfc}"