diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-07 09:32:52 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-07 09:32:52 +0000 |
commit | d033b65043484e321e35a09517cb5c38a26bf098 (patch) | |
tree | e4e54b4818153d00fff1ed4f1812ab978484a159 /usr.sbin/pkg_add/OpenBSD/Replace.pm | |
parent | 665a629eb40eb52026e905ec70f149459db5732a (diff) |
make sure all temporary file handling goes through OpenBSD::Temp
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Replace.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Replace.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm index bbf7cbfd5ba..49e016cde1d 100644 --- a/usr.sbin/pkg_add/OpenBSD/Replace.pm +++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Replace.pm,v 1.8 2007/05/07 08:24:16 espie Exp $ +# $OpenBSD: Replace.pm,v 1.9 2007/05/07 09:32:51 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -53,7 +53,7 @@ sub unmark_lib } package OpenBSD::PackingElement::FileBase; -use File::Temp qw/tempfile/; +use OpenBSD::Temp; sub extract { @@ -77,8 +77,7 @@ sub extract if (!-e _) { File::Path::mkpath($d); } - my ($fh, $tempname) = tempfile('pkg.XXXXXXXXXX', - DIR => $d); + my ($fh, $tempname) = OpenBSD::Temp::permanent_file($d, "pkg"); print "extracting $tempname\n" if $state->{very_verbose}; $file->{name} = $tempname; |