summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-25 11:04:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-25 11:04:15 +0000
commitd44dfb5d692e3c38d987ca775af156909295c7b3 (patch)
tree759aa2ffdbb51a608103f4e3321f9d86a53f0818 /usr.bin
parent9c7eb29f7fb5a32d3efc92b6e8ef8e77c91f6138 (diff)
permit quotas to work on mfs; problem reported by rdante@pnet.net
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/quota/quota.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index 6ec5d5f9b5a..c278849c676 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$Id: quota.c,v 1.3 1996/04/21 23:43:38 deraadt Exp $";
+static char rcsid[] = "$Id: quota.c,v 1.4 1996/04/25 11:04:06 deraadt Exp $";
#endif /* not lint */
/*
@@ -452,9 +452,9 @@ getprivs(id, quotatype)
if (strncmp(fst[i].f_fstypename, "nfs", MFSNAMELEN) == 0) {
if (getnfsquota(&fst[i], NULL, qup, id, quotatype) == 0)
continue;
- } else if ((strncmp(fst[i].f_fstypename, "ffs",
- MFSNAMELEN) == 0) || (strncmp(fst[i].f_fstypename, "ufs",
- MFSNAMELEN) == 0)) {
+ } else if (!strncmp(fst[i].f_fstypename, "ffs", MFSNAMELEN) ||
+ !strncmp(fst[i].f_fstypename, "ufs", MFSNAMELEN) ||
+ !strncmp(fst[i].f_fstypename, "mfs", MFSNAMELEN)) {
/*
* XXX
* UFS filesystems must be in /etc/fstab, and must