summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-01-14 19:35:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-01-14 19:35:56 +0000
commitcc3600e4c630070aa7df32116f9327caa3c2513c (patch)
tree58b5d181ed70d822bcbaff02191f6d9d367d3a18 /usr.sbin/pkg_add/OpenBSD/Add.pm
parent8b3a22705b77505490f2a3fef0fc9de84536e8f6 (diff)
fix new vstat, and make it useful, for instance for -n.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index 283855b8edd..9b6adcc709b 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.103 2010/01/03 19:55:35 espie Exp $
+# $OpenBSD: Add.pm,v 1.104 2010/01/14 19:35:55 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -369,7 +369,7 @@ sub prepare_for_addition
$state->{problems}++;
return;
}
- my $s = $state->vstat->add($fname, $self->{size}, \$pkgname);
+ my $s = $state->vstat->add($fname, $self->{size}, $pkgname);
return unless defined $s;
if ($s->ro) {
$s->report_ro($state, $fname);
@@ -490,7 +490,7 @@ sub prepare_for_addition
return;
}
my $size = $self->{copyfrom}->{size};
- my $s = $state->vstat->add($fname, $size, \$pkgname);
+ my $s = $state->vstat->add($fname, $size, $pkgname);
return unless defined $s;
if ($s->ro) {
$s->report_ro($state, $fname);
@@ -674,7 +674,7 @@ sub prepare_for_addition
$s2->report_noexec($state, $cname);
}
}
- my $s = $state->vstat->add($fname, $self->{size}, \$pkgname);
+ my $s = $state->vstat->add($fname, $self->{size}, $pkgname);
return unless defined $s;
if ($s->ro) {
$s->report_ro($state, $fname);