aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-01-17 16:45:03 +0000
committerBruce Evans <bde@FreeBSD.org>1998-01-17 16:45:03 +0000
commitb49d184b20652ffdf4af5810839ead73cb3e26cb (patch)
tree6bf14be94069a1b5285a6a906748b896e14b32b3 /usr.sbin
parent1e69872de704e5959e8a60ef1f6f767217e4961a (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/quot/quot.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 64fdb284cadb2..7be0641814daf 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: quot.c,v 1.6 1997/08/13 12:09:48 jkh Exp $";
+ "$Id: quot.c,v 1.7 1997/10/10 06:31:07 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -522,7 +522,6 @@ main(argc,argv)
{
char all = 0;
struct statfs *mp;
- struct vfsconf *vfsp;
char dev[MNAMELEN + 1];
char *nm;
int cnt;
@@ -564,11 +563,8 @@ main(argc,argv)
}
if (all) {
cnt = getmntinfo(&mp,MNT_NOWAIT);
- vfsp = getvfsbyname("ufs");
- if (vfsp == NULL)
- errx(1, "cannot find ufs/ffs filesystem type!");
for (; --cnt >= 0; mp++) {
- if (mp->f_type == vfsp->vfc_index) {
+ if (!strncmp(mp->f_fstypename, "ufs", MFSNAMELEN)) {
if ((nm = strrchr(mp->f_mntfromname,'/'))) {
sprintf(dev,"/dev/r%s",nm + 1);
nm = dev;