r5115 - trunk/varnish-cache/lib/libvarnish
phk at varnish-cache.org
phk at varnish-cache.org
Sat Aug 21 14:34:16 CEST 2010
Author: phk
Date: 2010-08-21 14:34:15 +0200 (Sat, 21 Aug 2010)
New Revision: 5115
Modified:
trunk/varnish-cache/lib/libvarnish/cli_serve.c
Log:
Only provide help on commands authorrized for the current CLI session
Modified: trunk/varnish-cache/lib/libvarnish/cli_serve.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/cli_serve.c 2010-08-21 12:21:48 UTC (rev 5114)
+++ trunk/varnish-cache/lib/libvarnish/cli_serve.c 2010-08-21 12:34:15 UTC (rev 5115)
@@ -129,6 +129,8 @@
debug = 1;
} else {
VTAILQ_FOREACH(cfn, &cs->funcs, list) {
+ if (cfn->auth > cli->auth)
+ continue;
for (cp = cfn->clp; cp->request != NULL; cp++) {
if (!strcmp(cp->request, av[2])) {
cli_out(cli, "%s\n%s\n",
@@ -148,6 +150,8 @@
return;
}
VTAILQ_FOREACH(cfn, &cs->funcs, list) {
+ if (cfn->auth > cli->auth)
+ continue;
for (cp = cfn->clp; cp->request != NULL; cp++) {
d = 0;
h = 0;
More information about the varnish-commit
mailing list