Hi,
This is the first patch for the problem reported by Nicola Franchi.
It fixes ifd_sysdep_device_type() always failing for USB devices in Linux.
Best regards,
Carlos Henrique Bauer
--- sys-linux.c.orig 2006-02-26 21:44:01.000000000 -0300
+++ sys-linux.c 2006-02-26 21:44:13.000000000 -0300
@@ -38,7 +38,7 @@
if (!name || name[0] != '/')
return -1;
- if (!strncmp(name, "/proc/bus/usb", 13) &&
+ if (!strncmp(name, "/proc/bus/usb", 13) ||
!strncmp(name, "/dev/bus/usb", 12))
return IFD_DEVICE_TYPE_USB;
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel