[Pcsclite-cvs-commit] r2230 - trunk/PCSC/src

Ludovic Rousseau rousseau at alioth.debian.org
Tue Nov 21 15:55:07 CET 2006


Author: rousseau
Date: 2006-11-21 15:55:07 +0100 (Tue, 21 Nov 2006)
New Revision: 2230

Modified:
   trunk/PCSC/src/hotplug_libusb.c
Log:
HPRescanUsbBus(): setenv USB_DEVFS_PATH to /proc/bus/usb

libusb default is /dev/bus/usb but the devices are not yet visible there
when a hotplug is requeste


Modified: trunk/PCSC/src/hotplug_libusb.c
===================================================================
--- trunk/PCSC/src/hotplug_libusb.c	2006-11-21 13:57:20 UTC (rev 2229)
+++ trunk/PCSC/src/hotplug_libusb.c	2006-11-21 14:55:07 UTC (rev 2230)
@@ -360,6 +360,10 @@
 
 void HPEstablishUSBNotifications(void)
 {
+	/* libusb default is /dev/bus/usb but the devices are not yet visible there
+	 * when a hotplug is requested */
+	setenv("USB_DEVFS_PATH", "/proc/bus/usb", 0);
+
 	usb_init();
 
 	/* scan the USB bus for devices at startup */




More information about the Pcsclite-cvs-commit mailing list