From 59bd4e758d2b24b45880718490aedc75cd1a3a2d Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Sat, 24 Jun 2017 13:46:49 +0200 Subject: 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 --- src/libqmi-glib/qmi-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1