Tomi Ollila <tomi.ollila@iki.fi> writes: > > We could also create > > char * realpath2008 (const char * path, char * resolved_path) > { > if (resolved_path == NULL) { > resolved_path = malloc (MAX_PATH); > if (resolved_path == NULL) > return NULL; > } > return realpath (path, resolved_path); > } > I sent several private replies to Tomi this morning while being sleepy. But they were not so great replies anyway. What about implimenting a compat version of canonicalize_file_name ? that function is a gnu extension, but since we only call realpath with a NULL second argument, it might be slighltly simpler to test/google for. d