Running "repquota -a /" is silly, so lets behave the same way other
utilities do. Okay?

--
WBR,
  Vadim Zhukov


Index: repquota.8
===================================================================
RCS file: /cvs/src/usr.sbin/repquota/repquota.8,v
retrieving revision 1.10
diff -u -p -r1.10 repquota.8
--- repquota.8  31 May 2007 19:20:28 -0000      1.10
+++ repquota.8  26 Oct 2015 17:06:28 -0000
@@ -40,8 +40,11 @@
 .Nm repquota
 .Nd summarize quotas for a file system
 .Sh SYNOPSIS
-.Nm repquota
-.Op Fl aguv
+.Nm
+.Op Fl guv
+.Fl a
+.Nm
+.Op Fl guv
 .Ar filesystem ...
 .Sh DESCRIPTION
 .Nm
Index: repquota.c
===================================================================
RCS file: /cvs/src/usr.sbin/repquota/repquota.c,v
retrieving revision 1.33
diff -u -p -r1.33 repquota.c
--- repquota.c  20 Aug 2015 22:39:29 -0000      1.33
+++ repquota.c  26 Oct 2015 17:06:28 -0000
@@ -102,7 +102,7 @@ main(int argc, char *argv[])
        }
        argc -= optind;
        argv += optind;
-       if (argc == 0 && !aflag)
+       if ((argc == 0) == (aflag == 0))
                usage();
        if (!gflag && !uflag) {
                if (aflag)

Reply via email to