options/posix: Implement canonicalize_file_name
@@ -490,7 +490,6 @@ void *reallocarray(void *ptr, size_t m, size_t n) {
return realloc(ptr, m * n);
}
-char *canonicalize_file_name(const char *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+char *canonicalize_file_name(const char *name) {
+ return realpath(name, NULL);
}
