mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
scd: Recover the partial match for PORTSTR for PC/SC.
* scd/apdu.c (apdu_open_reader): Allow partial match of PORTSTR again just like 2.2 does. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
d6fe82d3d1
commit
53bdc6288f
@ -2239,7 +2239,8 @@ apdu_open_reader (struct dev_list *dl)
|
||||
log_debug ("apdu_open_reader: new device=%s\n", rdrname);
|
||||
|
||||
/* When reader string is specified, check if it is the one. */
|
||||
if (readerno < 0 && strcmp (rdrname, dl->portstr) != 0)
|
||||
if (readerno < 0
|
||||
&& strncmp (rdrname, dl->portstr, strlen (dl->portstr)) != 0)
|
||||
continue;
|
||||
|
||||
slot = open_pcsc_reader (rdrname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user