libqmi: fix musl

This commit is contained in:
Michael Gehring 2017-05-06 07:02:53 +00:00
parent 154c113219
commit f0a6cc6e02
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/libqmi-glib/qmi-utils.c.orig 2017-03-21 13:26:54.000000000 +0000
+++ src/libqmi-glib/qmi-utils.c 2017-05-06 07:01:21.180900541 +0000
@@ -740,7 +740,7 @@
* /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 (g_file_test (path, G_FILE_TEST_EXISTS))