Package: pcsc-tools Version: 1.4.8-1 Severity: normal Tags: patch When executing the script with the following two commands, an error occurs: script window: A0 A4 00 00 02 3f 00 A0 A4 00 00 02 7f 10
result window: Sending: A0 A4 00 00 02 3F 00 Received: 9F 16 Error not defined by ISO 7816 Sending: A0 A4 00 00 02 3F A0 A4 00 00 02 7F 10 Errors During Script Execution: Transaction failed. It seems that the command variable does not get reset properly. The attached trivial patch fixes it. -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (700, 'stable'), (600, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages pcsc-tools depends on: ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries ii libgtk2-perl 1:1.140-1 Perl interface to the 2.x series o ii libpcsc-perl 1.4.4-1 Perl interface to the PC/SC smart ii libpcsclite1 1.3.2-5 Middleware to access a smart card pcsc-tools recommends no packages. -- no debconf information
--- /usr/bin/gscriptor.orig 2006-11-26 15:59:41.000000000 +0100 +++ /usr/bin/gscriptor 2008-06-20 17:43:18.000000000 +0200 @@ -842,6 +842,7 @@ # Extract bytes from the ascii string $raCurrentCommand = Chipcard::PCSC::ascii_to_array($cmd); + $cmd=""; # push them in the Display structure push @ResultStruct, "Sending: ";