summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcompat/stdlib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c
index 82f7602..2d3e5f7 100644
--- a/libgcompat/stdlib.c
+++ b/libgcompat/stdlib.c
@@ -22,6 +22,13 @@ char *__realpath_chk(const char *path, char *resolved_path, size_t resolved_len)
}
/**
+ * Return the canonicalized absolute pathname
+ */
+char *canonicalize_file_name(const char *path) {
+ return realpath(path, NULL);
+}
+
+/**
* Get an environment variable.
*/
char *__secure_getenv(const char *name)