diff options
author | Joe Orton <jorton@apache.org> | 2013-01-21 16:09:13 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2013-01-21 16:09:13 +0100 |
commit | 4b2fd1c1177c4d71f8a9838e2c83b193b4e3b50b (patch) | |
tree | a549f8d97865161a8ffa2f61f1230af327cfff2d /support/htcacheclean.c | |
parent | Replace usage of 'apache' with 'apache httpd' where appropriate (diff) | |
download | apache2-4b2fd1c1177c4d71f8a9838e2c83b193b4e3b50b.tar.xz apache2-4b2fd1c1177c4d71f8a9838e2c83b193b4e3b50b.zip |
* support/htcacheclean.c (main): Ensure -p was used before attempting
to process URL arguments.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436401 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htcacheclean.c')
-rw-r--r-- | support/htcacheclean.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/support/htcacheclean.c b/support/htcacheclean.c index f093410ca1..4150936fbb 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -1620,6 +1620,10 @@ int main(int argc, const char * const argv[]) usage(NULL); } + if (!proxypath) { + usage("Option -p must be specified"); + } + if (o->ind < argc) { int deleted = 0; int error = 0; @@ -1671,10 +1675,6 @@ int main(int argc, const char * const argv[]) usage("Option -i cannot be used without -d"); } - if (!proxypath) { - usage("Option -p must be specified"); - } - if (!listurls && max <= 0 && inodes <= 0) { usage("At least one of option -l or -L must be greater than zero"); } |