From 0288a9ecb082b30a7206279d13af9bdb036adfce Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Wed, 2 Sep 2015 23:41:23 +0200 Subject: metaentry.c: Use realpath() instead of GNU-ish canonicalize_file_name(). canonicalize_file_name() is not portable, but it can be easily replaced. Now we're a bit friendlier to non-GNU libcs, like musl. --- metaentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'metaentry.c') diff --git a/metaentry.c b/metaentry.c index 3ed37e8..de8b6e0 100644 --- a/metaentry.c +++ b/metaentry.c @@ -292,7 +292,7 @@ mentry_create(const char *path) static char * normalize_path(const char *orig) { - char *real = canonicalize_file_name(orig); + char *real = realpath(orig, NULL); char cwd[PATH_MAX]; char *result; -- cgit v1.2.1