summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2015-07-28 13:22:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>2015-07-28 13:22:08 +0000
commit366e1aedc339cf4739f680a3bde98bfd588540c2 (patch)
treee13436ea33f4de828e6aff29b0b4cddb4dc596ca /usr.sbin
parent9ee53e869876be6a6d019c35178223271edf7c80 (diff)
make -B with bad checksums cope. Reported by millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Delete.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm
index 84dc069fefe..ef43ff772f1 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.143 2015/05/18 10:41:19 espie Exp $
+# $OpenBSD: Delete.pm,v 1.144 2015/07/28 13:22:07 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -165,7 +165,7 @@ sub rename_file_to_temp
my ($self, $state) = @_;
require OpenBSD::Temp;
- my $n = $self->fullname;
+ my $n = $self->realname($state);
my ($fh, $j) = OpenBSD::Temp::permanent_file(undef, $n);
close $fh;