summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-01-04 14:23:06 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-01-04 14:23:06 +0000
commitc147011b715e7dde6b3a9ae1068d410571c23e73 (patch)
treec51cdade3c42022efd40e934d50193be4b9ad476 /usr.sbin
parentd9ed17ae2009bbcb4898170ed160279ebc0914dc (diff)
go all the way, put temp pages in /tmp
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index 37cca8bc235..d7f3f08384b 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.39 2011/01/04 13:48:24 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.40 2011/01/04 14:23:05 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -429,8 +429,8 @@ sub makesum_plist
}
my $dest = $self->source_to_dest;
my $d = dirname($self->cwd."/".$dest);
- my ($fh, $tempname) = OpenBSD::Temp::permanent_file($state->{base},
- "manpage.".basename($dest));
+ my ($fh, $tempname) = OpenBSD::Temp::permanent_file(
+ $ENV{TMPDIR} // '/tmp', "manpage.".basename($dest));
chmod 0444, $fh;
if (-d $state->{base}.$d) {
undef $d;