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/Delete.pm | |
parent | 665a629eb40eb52026e905ec70f149459db5732a (diff) |
make sure all temporary file handling goes through OpenBSD::Temp
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Delete.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Delete.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm index 53d794b5bc0..eeeaba7d43c 100644 --- a/usr.sbin/pkg_add/OpenBSD/Delete.pm +++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Delete.pm,v 1.40 2007/05/07 08:34:09 espie Exp $ +# $OpenBSD: Delete.pm,v 1.41 2007/05/07 09:32:51 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -27,11 +27,11 @@ use File::Basename; sub rename_file_to_temp { my $i = shift; - require File::Temp; + require OpenBSD::Temp; my $n = $i->fullname(); - my ($fh, $j) = File::Temp::mkstemp("$n.XXXXXXXX"); + my ($fh, $j) = OpenBSD::Temp::permanent_file(undef, $n); close $fh; if (rename($n, $j)) { print "Renaming old file $n to $j\n"; |