From 1ba037f03bb46b3b97ed5c4fd0f8b097df56fac0 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 4 May 1996 12:30:22 +0000 Subject: allow operation even if fstab does not label filesystem as supporting quotas; pointed out by jonny@gaia.coppe.ufrj.br --- usr.sbin/repquota/repquota.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/repquota') 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); } } -- cgit v1.2.3