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
commitcbcddf0410d45d73ef59a2586c91024ae4c2095e (patch)
treed862cad8fbf5b75331488f894a621fdc0f96519e
parentLower sctd temperature (diff)
downloadsrc-cbcddf0410d45d73ef59a2586c91024ae4c2095e.tar.gz
src-cbcddf0410d45d73ef59a2586c91024ae4c2095e.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.
Diffstat (limited to '')
-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}"