summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2015-05-12 22:28:54 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:26 +0100
commit471b6d47ea38466543d8566a3a7df65e1a309e4b (patch)
treedc918d208e7306326560a6bdc11d0ba2a70b7030
parent526c86edcbf2cdd1249ee63c043dd3a96a5694a4 (diff)
make mktemp more bsd friendly
-rw-r--r--ChangeLog3
-rw-r--r--trip.rc2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a7106dc..ed27aa9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -896,3 +896,6 @@ Changes since rc-1.5b2
Licensing: due to GPL compatibility concerns, the license is changed
again to the "zlib" license. (N.B. This license change was agreed and
approved by Byron Rakitzis, who is the copyright holder.)
+
+ Testing: swap arguments to mktemp to be kinder to NetBSD (thanks Piotr
+ Meyer).
diff --git a/trip.rc b/trip.rc
index ed9c75d..c811347 100644
--- a/trip.rc
+++ b/trip.rc
@@ -24,7 +24,7 @@ fn sigexit sigint sigquit sigsegv
fn sigexit {
echo trip complete
}
-tmpdir=`{ mktemp -t -d rc-trip.XXXXXX }
+tmpdir=`{ mktemp -d -t rc-trip.XXXXXX }
tmp=$tmpdir/tmp
nl='
'