summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-01-03 14:22:49 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-01-03 14:22:49 +0000
commitec82a45cd95df7815cfdd37e14dc6db416d5349d (patch)
treea34b5155810be639bdd2d5b44828d3a8f1f852ba /usr.sbin/pkg_add
parent1a2b9fd5490e630ab64ae7e5da95470147bf1d79 (diff)
unbreak hardlinks, like MLINKS, too.
ok espie@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Ustar.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
index 26dcd1ec849..83aa3faf8fe 100644
--- a/usr.sbin/pkg_add/OpenBSD/Ustar.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Ustar.pm,v 1.68 2011/01/03 00:12:06 espie Exp $
+# $OpenBSD: Ustar.pm,v 1.69 2011/01/03 14:22:48 jasper Exp $
#
# Copyright (c) 2002-2007 Marc Espie <espie@openbsd.org>
#
@@ -306,6 +306,7 @@ sub prepare
my $class = "OpenBSD::Ustar::File"; # default
if (defined $self->{key}->{$k}) {
$entry->{linkname} = $self->{key}->{$k};
+ $entry->{size} = 0;
$class = "OpenBSD::Ustar::HardLink";
} elsif (-l $realname) {
$entry->{linkname} = readlink($realname);