summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-11-06 12:20:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-11-06 12:20:03 +0000
commita5a47c980c1fc5db77e66abaa47de74ac304b94c (patch)
tree168e349155661511dda01c11d6ab47a382bf1e65 /usr.sbin/pkg_add
parent34617830694d282bd732b97b341d8023d88e9512 (diff)
zap tempname once we've moved the file.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index 9b9dcb94716..bb52e1f237f 100644
--- a/usr.sbin/pkg_add/OpenBSD/Add.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Add.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Add.pm,v 1.6 2004/11/06 12:19:17 espie Exp $
+# $OpenBSD: Add.pm,v 1.7 2004/11/06 12:20:02 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -171,6 +171,7 @@ sub install
} else {
rename($self->{tempname}, $destdir.$fullname);
print "moving ", $self->{tempname}, " -> $destdir$fullname\n" if $state->{very_verbose};
+ undef $self->{tempname};
}
} else {
my $file = $self->prepare_to_extract($state);