canonicalize_file_name_at
Apparently it has issues. Claims close on already closed file. newret memory leak? Something about errno. Just rewrite it. It's not good code.
See http://bespin.org/~qz/search/?view=1&c=osdev&y=16&m=2&d=18 look for conversation about this function with graphitemaster.