summaryrefslogtreecommitdiffstats
path: root/usr.bin/quota
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-01-20 12:53:43 +0000
committerbde <bde@FreeBSD.org>1998-01-20 12:53:43 +0000
commit81c8725d44d339e291e20bcd6dd1bc31142092e0 (patch)
treed9748f8418118509938eebdea75886cc10757123 /usr.bin/quota
parent3028bab0aea636bf4104ce41e293e0f253229f49 (diff)
downloadFreeBSD-src-81c8725d44d339e291e20bcd6dd1bc31142092e0.zip
FreeBSD-src-81c8725d44d339e291e20bcd6dd1bc31142092e0.tar.gz
Converted to Lite2 mount interface - decide filesystem types by name
instead of by number.
Diffstat (limited to 'usr.bin/quota')
-rw-r--r--usr.bin/quota/quota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index a761cee..e15164a 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: quota.c,v 1.7 1997/08/04 06:45:11 charnier Exp $";
#endif /* not lint */
/*
@@ -470,11 +470,11 @@ getprivs(id, quotatype)
== NULL)
errx(2, "out of memory");
}
- if (fst[i].f_type == MOUNT_NFS) {
+ if (strcmp(fst[i].f_fstypename, "nfs") == 0) {
if (getnfsquota(&fst[i], NULL, qup, id, quotatype)
== 0)
continue;
- } else if (fst[i].f_type == MOUNT_UFS) {
+ } else if (strcmp(fst[i].f_fstypename, "ffs") == 0) {
/*
* XXX
* UFS filesystems must be in /etc/fstab, and must
OpenPOWER on IntegriCloud