summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-04 12:28:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-04 12:28:19 +0000
commit0f96034d4dbd033a9968c170dfc4e6b3fa6ecbdd (patch)
tree51842645e9487dc704f040a24492927b7f97f59e /usr.sbin
parenta947ee989aa0611cbbbedc5ac9b821a0e2e531e0 (diff)
allow operation even if fstab does not label filesystem as supporting
quotas; pointed out by jonny@gaia.coppe.ufrj.br
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/quotaon/quotaon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 5dd2769331c..c9622ac30e1 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: quotaon.c,v 1.6 1996/04/25 11:04:13 deraadt Exp $";
+static char *rcsid = "$Id: quotaon.c,v 1.7 1996/05/04 12:28:18 deraadt Exp $";
#endif /* not lint */
/*
@@ -130,9 +130,9 @@ main(argc, argv)
if ((argnum = oneof(fs->fs_file, argv, argc)) >= 0 ||
(argnum = oneof(fs->fs_spec, argv, argc)) >= 0) {
done |= 1 << argnum;
- if (gflag && hasquota(fs, GRPQUOTA, &qfnp))
+ if (gflag)
errs += quotaonoff(fs, offmode, GRPQUOTA, qfnp);
- if (uflag && hasquota(fs, USRQUOTA, &qfnp))
+ if (uflag)
errs += quotaonoff(fs, offmode, USRQUOTA, qfnp);
}
}