From cbcddf0410d45d73ef59a2586c91024ae4c2095e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 26 Feb 2021 19:08:54 -0500 Subject: 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. --- doc/rfc/rfc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- cgit 1.4.1