log(L_DEBUG, "... and got %p", b);
static int findcontrol(struct request *r){	char *p = r->path_translated;	struct server *s = r->cn->s;	struct control *a, *b;	char *m, *t;	a = s->controls;	b = 0;	m = 0;	while (a) {		if (a->directory == 0) {			if (b == 0)				b = a;		}		else if ((t = dirmatch(p, a->directory)) != 0) {			if (m == 0 || m < t) {				m = t;				b = a;			}		}		a = a->next;	}	r->c = b;	return b ? 0 : -1;}