diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-02 00:37:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-02 00:37:56 +0000 |
commit | 68396070774f6c91bbc669354af257da987c899a (patch) | |
tree | 670ef07643ccaecd72cf9c845c93453e2c466226 | |
parent | f3ff682815936fa81f56333198138ecfb490f9b1 (diff) |
Vstat API changed slightly. Found out by fries@
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 6 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Delete.pm | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 2118eac3369..6b83188403b 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.22 2004/11/22 01:56:13 espie Exp $ +# $OpenBSD: Add.pm,v 1.23 2004/12/02 00:37:54 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -84,11 +84,11 @@ sub validate_plist($$) my $s = OpenBSD::Vstat::add($fname, $item->{size}); next unless defined $s; if ($s->{ro}) { - Warn "Error: ", $s->{mnt}, " is read-only ($fname)\n"; + Warn "Error: ", $s->{dev}, " is read-only ($fname)\n"; $problems++; } if ($s->avail() < 0) { - Warn "Error: ", $s->{mnt}, " is not large enough ($fname)\n"; + Warn "Error: ", $s->{dev}, " is not large enough ($fname)\n"; $problems++; } } diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm index eb726416ce1..42388d097c5 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.13 2004/11/27 12:07:58 espie Exp $ +# $OpenBSD: Delete.pm,v 1.14 2004/12/02 00:37:55 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -57,7 +57,7 @@ sub validate_plist($$) my $s = OpenBSD::Vstat::remove($fname, $item->{size}); next unless defined $s; if ($s->{ro}) { - Warn "Error: ", $s->{mnt}, " is read-only ($fname)\n"; + Warn "Error: ", $s->{dev}, " is read-only ($fname)\n"; $problems++; } } |