From 2aa14fb9420b7d35c37e195398aaf01c6f4b15d9 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 22 Aug 2005 11:11:40 +0000 Subject: parse mount entry correctly even if space left is negative --- usr.sbin/pkg_add/OpenBSD/Vstat.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD') diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm index 76949688a31..e06558115dc 100644 --- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm +++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Vstat.pm,v 1.10 2004/12/29 11:28:59 espie Exp $ +# $OpenBSD: Vstat.pm,v 1.11 2005/08/22 11:11:39 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie # @@ -84,7 +84,7 @@ sub ask_df($) chomp; if (m/^Filesystem\s+(\d+)\-blocks/) { $blocksize = $1; - } elsif (m/^(.*?)\s+\d+\s+\d+\s+(\d+)\s+\d+\%\s+\/.*?$/) { + } elsif (m/^(.*?)\s+\d+\s+\d+\s+(\-?\d+)\s+\d+\%\s+\/.*?$/) { my ($dev, $avail) = ($1, $2); $info = $devinfo->{$dev}; if (!defined $info) { -- cgit v1.2.3