if (stat(p, &r->finfo) != -1)
rv = stat(p, &r->finfo); if (debug) log_d("append_indexes: stat(\"%s\") = %d", p, rv); if (rv != -1)
static int append_indexes(struct request *r){	char *p, *q;	struct simple_list *i;	p = r->path_translated;	q = p + strlen(p);	r->isindex = 1;	i = r->c->index_names;	while (i) {		strcpy(q, i->name);		if (stat(p, &r->finfo) != -1)			break;		i = i->next;	}	if (i == 0) {		*q = 0;		r->error_file = r->c->error_404_file;		return 404;	}	return 0;}