diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-08-22 11:11:40 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-08-22 11:11:40 +0000 |
commit | 2aa14fb9420b7d35c37e195398aaf01c6f4b15d9 (patch) | |
tree | 5d698e5e53ea4eeee593799b6271c946a9cd905f /usr.sbin/pkg_add/OpenBSD | |
parent | 0a3a49a4b78e58486f89185a6b123c9341dce2f1 (diff) |
parse mount entry correctly even if space left is negative
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Vstat.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 <espie@openbsd.org> # @@ -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) { |