aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-06-24 13:46:49 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-09-04 23:13:28 +0000
commit59bd4e758d2b24b45880718490aedc75cd1a3a2d (patch)
tree23e5c6c6de0ad8d8beeb820a52a8acc34bf4af7b
parent88ca109f9ca29fcff9651e2ac8930e6c3600ac64 (diff)
downloadexternal_libqmi-59bd4e758d2b24b45880718490aedc75cd1a3a2d.zip
external_libqmi-59bd4e758d2b24b45880718490aedc75cd1a3a2d.tar.gz
external_libqmi-59bd4e758d2b24b45880718490aedc75cd1a3a2d.tar.bz2
utils: use realpath() instead of canonicalize_file_name()
Some standard C libraries like Android's Bionic don't support canonicalize_file_name(). Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--src/libqmi-glib/qmi-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libqmi-glib/qmi-utils.c b/src/libqmi-glib/qmi-utils.c
index 5d399a6..8a059ba 100644
--- a/src/libqmi-glib/qmi-utils.c
+++ b/src/libqmi-glib/qmi-utils.c
@@ -740,7 +740,7 @@ __qmi_utils_get_driver (const gchar *cdc_wdm_path)
* /sys/bus/usb/drivers/qmi_wwan
*/
tmp = g_strdup_printf ("/sys/class/%s/%s/device/driver", subsystems[i], device_basename);
- path = canonicalize_file_name (tmp);
+ path = realpath (tmp, NULL);
g_free (tmp);
if (!path)