diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-04 12:30:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-04 12:30:22 +0000 |
commit | 1ba037f03bb46b3b97ed5c4fd0f8b097df56fac0 (patch) | |
tree | 63e66369d6aa49747a2895e466f1871fef6ba63f /usr.sbin/repquota/repquota.c | |
parent | 0f96034d4dbd033a9968c170dfc4e6b3fa6ecbdd (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/repquota/repquota.c')
-rw-r--r-- | usr.sbin/repquota/repquota.c | 6 |
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); } } |