summaryrefslogtreecommitdiffstats
path: root/usr.sbin/repquota
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-04 12:28:18 +0000
committerderaadt <deraadt@openbsd.org>1996-05-04 12:28:18 +0000
commitb0f424dd2def831d4ec1ddd26c2b0a44bdca73c8 (patch)
treee924355d0d1f11c9c17c30464714431d672cc449 /usr.sbin/repquota
parentdocument largest possible value; netbsd pr#2338; from banshee@gabriella.resort.com (diff)
downloadwireguard-openbsd-b0f424dd2def831d4ec1ddd26c2b0a44bdca73c8.tar.xz
wireguard-openbsd-b0f424dd2def831d4ec1ddd26c2b0a44bdca73c8.zip
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/repquota')
-rw-r--r--usr.sbin/repquota/repquota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c
index 7db5c19acb6..ab086a1a254 100644
--- a/usr.sbin/repquota/repquota.c
+++ b/usr.sbin/repquota/repquota.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)repquota.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: repquota.c,v 1.6 1996/04/25 11:04:14 deraadt Exp $";
+static char *rcsid = "$Id: repquota.c,v 1.7 1996/05/04 12:30:21 deraadt Exp $";
#endif /* not lint */
/*
@@ -146,9 +146,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 += repquota(fs, GRPQUOTA, qfnp);
- if (uflag && hasquota(fs, USRQUOTA, &qfnp))
+ if (uflag)
errs += repquota(fs, USRQUOTA, qfnp);
}
}