summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-08-16 06:24:36 +0200
committerAnthony G. Basile <blueness@gentoo.org>2013-08-16 18:25:13 -0400
commitc7b154161aa1fa7b256d164c4530bcdb26626866 (patch)
tree1f8731bf69fc8af0b6bb20c0562b5b3da41515fa
parent556d85c62eaa46f4f668fb1ac56a16c3158f24c5 (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 fd67310474..417450f283 100644
--- a/src/libudev/path-util.c
+++ b/src/libudev/path-util.c
@@ -152,7 +152,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;