diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-09-02 23:41:23 +0200 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-09-02 23:41:23 +0200 |
commit | 0288a9ecb082b30a7206279d13af9bdb036adfce (patch) | |
tree | 927037294ca3de9ced1fb52f4bac1d299df379ec | |
parent | c7e8ae67a35a6b578f9a756a59256d8c8933a046 (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.c | 2 |
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; |