summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-08-16 06:24:36 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-01-20 12:46:44 -0500
commit6fe934ee6d8eb5f2098be22114e9bca34cbda591 (patch)
tree7e9a304a0387999c008d7c8eb2093e8064767aad
parentb8ed8b124aaff754e244dff6930b36c192fa69e0 (diff)
libudev/path-util.c: remove usage of canonicalize_file_name()
this is a glibc specific alias for realpath(path, NULL). to be portable, we need to use the real thing which is even less verbose. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/libudev/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/path-util.c b/src/libudev/path-util.c
index a4484c8de1..67863a8757 100644
--- a/src/libudev/path-util.c
+++ b/src/libudev/path-util.c
@@ -149,7 +149,7 @@ char **path_strv_canonicalize(char **l) {
}
errno = 0;
- u = canonicalize_file_name(t);
+ u = realpath(t, 0);
if (!u) {
if (errno == ENOENT)
u = t;