i'm very very very beginner in C so my code is certainly ugly <span id="result_box" class="short_text" lang="en"><span title="Cliquer ici pour voir d'autres traductions" class="hps">but here's</span> <span title="Cliquer ici pour voir d'autres traductions" class="hps">what I've done</span> <span title="Cliquer ici pour voir d'autres traductions" class="hps">so far :</span></span><br>
<br>i done some change in mapfile.c on mapfile_build_path() : <br><br>static buffer * mapfile_build_path(ows * o, char * fpath)<br>{<br> buffer * path;<br> assert(fpath);<br> char * config = "";<br>
char patate[45];<br> char * pch;<br> /* Path is absolute */<br> if ((fpath[0] == '/') || (fpath[0] == '\\') || (strlen(fpath) && (fpath[1] == ':')))<br> return buffer_from_str(fpath);<br>
<br> /* Path is relative */<br> path = buffer_init();<br><br> config = (char *) o->config_file->buf;<br> pch=strrchr(config,'/');<br> strncpy(patate, config, pch-config+1);<br>
buffer_add_str(path,patate);<br> buffer_add_str(path,fpath);<br> <br> return path;<br>}<br><br>i also delete a check on OWS_MAP_MAX_INCLUDE_DEPTH line 2469 of mapfile.c<br>because i did not found how increase the nesting level so if someone have a clue <br>
<br> <br>