summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-09-02 23:41:23 +0200
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-09-02 23:41:23 +0200
commit0288a9ecb082b30a7206279d13af9bdb036adfce (patch)
tree927037294ca3de9ced1fb52f4bac1d299df379ec
parentc7e8ae67a35a6b578f9a756a59256d8c8933a046 (diff)
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.
-rw-r--r--metaentry.c2
1 files changed, 1 insertions, 1 deletions
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;