summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-04-28 06:47:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-04-28 06:47:13 +0000
commitb96df966c6f52f1a207ab2ef2383af6299cb6686 (patch)
treecb20976c913111ffa42a9e5606716dc5edfc8979 /usr.sbin
parent6130dab8fc3ef157452d71f919864e7756f614ff (diff)
Blech, SFS yields weird mount/df shit.
Non absolute mount points ? give me a break. Fix for ugly nonsense. Problem reported by David Mazieres.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index ee9c428032b..24332f4ed79 100644
--- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Vstat.pm,v 1.4 2004/03/10 08:21:40 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.5 2004/04/28 06:47:12 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -65,7 +65,7 @@ sub init_dirinfo()
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 ($mntpoint, $avail) = ($2, $1);
my $i = create_mntpoint($mntpoint);
$i->{avail} = $avail;
@@ -76,7 +76,7 @@ sub init_dirinfo()
open(my $cmd1, "/sbin/mount|") or print STDERR "Can't run mount\n";
while (<$cmd1>) {
chomp;
- if (m/^.*?\s+on\s+(.*?)\s+type\s+.*?(?:\s+\((.*?)\))?$/) {
+ if (m/^.*?\s+on\s+(\/.*?)\s+type\s+.*?(?:\s+\((.*?)\))?$/) {
my ($mntpoint, $opts) = ($1, $2);
my $i = create_mntpoint($mntpoint);
next unless defined $opts;