diff options
author | jkar8572 <jkar8572> | 2001-09-27 10:38:03 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-09-27 10:38:03 +0000 |
commit | 6cac7d8ee94d9262117e27df014a8b76ff889bde (patch) | |
tree | a47c21cec027c8f66bef449ac9e7f4e74d0ff337 | |
parent | 570ff1d772f4b2d0a73025c547e46e82ceb79eaa (diff) |
Made testing of arguments for quotacheck a bit more strick (complain when -a and mountpoint specified together).
-rw-r--r-- | quotacheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quotacheck.c b/quotacheck.c index 47adef0..9793990 100644 --- a/quotacheck.c +++ b/quotacheck.c @@ -8,7 +8,7 @@ * New quota format implementation - Jan Kara <jack@suse.cz> - Sponsored by SuSE CR */ -#ident "$Id: quotacheck.c,v 1.20 2001/09/26 12:26:11 jkar8572 Exp $" +#ident "$Id: quotacheck.c,v 1.21 2001/09/27 10:38:03 jkar8572 Exp $" #include <dirent.h> #include <stdio.h> @@ -345,7 +345,7 @@ static void parse_options(int argcnt, char **argstr) } if (!(uwant | gwant)) uwant = 1; - if (argcnt == optind && !(flags & FL_ALL)) { + if ((argcnt == optind && !(flags & FL_ALL)) || (argcnt > optind && flags & FL_ALL)) { fputs(_("Bad number of arguments.\n"), stderr); usage(); } |