diff options
author | Ceri Davies <ceri@FreeBSD.org> | 2006-11-07 19:07:52 +0000 |
---|---|---|
committer | Ceri Davies <ceri@FreeBSD.org> | 2006-11-07 19:07:52 +0000 |
commit | bbb83feb32e89673374181a33a4db67f12a2a94f (patch) | |
tree | 2dcc00bdd2995236044057e7f9358b9946d7e99b /sbin/quotacheck/quotacheck.c | |
parent | 8064e5d71f40b86ef9c8c2edb2ee751fa0ffc3fb (diff) | |
download | src-bbb83feb32e89673374181a33a4db67f12a2a94f.tar.gz src-bbb83feb32e89673374181a33a4db67f12a2a94f.zip |
Document the -l option.
Reviewed by: brd
Approved by: ru (mentor)
Notes
Notes:
svn path=/head/; revision=164071
Diffstat (limited to 'sbin/quotacheck/quotacheck.c')
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 634124e11043..b0a7df9ff393 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -192,6 +192,12 @@ main(argc, argv) (void) addid((u_long)pw->pw_uid, USRQUOTA, pw->pw_name); endpwent(); } + /* + * Setting maxrun (-l) makes no sense without the -a flag. + * Historically this was never an error, so we just warn. + */ + if (maxrun > 0 && !aflag) + warnx("ignoring -l without -a"); if (aflag) exit(checkfstab(1, maxrun, needchk, chkquota)); if (setfsent() == 0) @@ -217,7 +223,7 @@ void usage() { (void)fprintf(stderr, "%s\n%s\n", - "usage: quotacheck [-guv] -a", + "usage: quotacheck [-guv] [-l maxrun] -a", " quotacheck [-guv] filesystem ..."); exit(1); } |