log(L_DEBUG, "faketoreal starting at %p ...", c);
struct control *faketoreal(char *x, char *y, struct request *r, int update){	struct control *c;	char *s;	char *m = 0;	struct control *cc = 0;	if (r->vs == 0) {		log(L_ERROR, "virtualhost not initialized!");		return 0;	}	c = r->vs->controls;	log(L_DEBUG, "faketoreal starting at %p ...", c);	while (c) {		if (c->locations		    && c->alias		    && (s = dirmatch(x, c->alias)) != 0		    && (m == 0 || s > m)) {			m = s;			cc = c;		}		c = c->next;	}	log(L_DEBUG, "... and got %p", cc);	if (cc) {		if (update)			cc->locations = cc->locations->next;		strcpy(y, cc->locations->name);		strcat(y, m);	}	return cc;}