OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Muscle] Error with pcsc lite

From: Olivier REMY (oremyixelles.irisnet.be)
Date: Mon Jan 29 2007 - 06:41:54 CST


Hi,

Thanks a lot ;)

I use Linux (Slackware 11 - 2.6.19.2). I must activate USB_DEVICEFS in my
kernel for /proc/bus/usb exists :)

I try...

Olivier

----- Original Message -----
From: "Ludovic Rousseau" <ludovic.rousseaugmail.com>
To: "MUSCLE" <musclelists.musclecard.com>
Sent: Monday, January 29, 2007 1:06 PM
Subject: Re: [Muscle] Error with pcsc lite

> On 29/01/07, Olivier REMY <oremyixelles.irisnet.be> wrote:
>> Hello,
>
> Hi,
>
>> I have a card reader ACS ACR38. I have pcsc lite and the driver
>> (http://www.acs.com.hk/download/ACR38_LINUX_100709_P.tar.gz)
>> installed.
>>
>> When i run pcscd i have an error :
>>
>> pcscdaemon.c:319:main() pcscd set to foreground with debug send to stderr
>> pcscdaemon.c:533 pcsc-lite 1.3.3 daemon ready.
>> hotplug_libusb.c:446:HPAddHotPluggable() Adding USB device:
>> 2:2
>> readerfactory.c:1108:RFInitializeReader() Attempting startup of ACS
>> ACR38U
>> 00 00 using
>> /usr/local/pcsc/drivers/ACR38UDriver.bundle/Contents/Linux/ACR38UDriver
>> readerfactory.c:943:RFBindFunctions() Loading IFD Handler 2.0
>> Cannot Open USB Path Directory
>> Segmentation fault
>>
>> Do you have a solution ?
>
> The "Cannot Open USB Path Directory" error message comes from the ACS
> driver.
>
> file ./src/driver/usblinux.c:
> dir = opendir(PCSCLITE_USB_PATH);
>
> if (!dir)
> {
> printf("Cannot Open USB Path Directory\n");
> }
>
> while ((entry = readdir(dir)) != NULL) {
>
> /* Skip anything starting with a . */
> if (entry->d_name[0] == '.')
> continue;
>
>
> The bug is clear. The code test if dir is NULL, prints an error
> message and then continue.
> readdir() will then fail and entry will be NULL. And entry->d_name will
> crash.
>
> You should report the bug to ACS or fix it yourself. That will solve
> the crash but not your problem.
>
> It looks like the directory /proc/bus/usb is not available on your
> system. Do you use Linux?
>
> Bye
>
> --
> Dr. Ludovic Rousseau
> _______________________________________________
> Muscle mailing list
> Musclelists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle