Bugzilla – Attachment 890 Details for
Bug 7253
ThinLinc Client does not exit when smart card reader is disconnected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to signal reader detach event
reader_detatch.patch (text/plain), 1.20 KB, created by
Henrik Andersson
on 2018-10-02 09:41:21 CEST
(
hide
)
Description:
patch to signal reader detach event
Filename:
MIME Type:
Creator:
Henrik Andersson
Created:
2018-10-02 09:41:21 CEST
Size:
1.20 KB
patch
obsolete
>diff --git a/opensc/src/libopensc/reader-pcsc.c b/opensc/src/libopensc/reader-pcsc.c >index f41735076..c65d2c2e4 100644 >--- a/opensc/src/libopensc/reader-pcsc.c >+++ b/opensc/src/libopensc/reader-pcsc.c >@@ -298,8 +298,17 @@ static int refresh_attributes(sc_reader_t *reader) > reader->flags &= ~SC_READER_CARD_CHANGED; > SC_FUNC_RETURN(reader->ctx, SC_LOG_DEBUG_VERBOSE, SC_SUCCESS); > } >- PCSC_TRACE(reader, "SCardGetStatusChange failed", rv); >- return pcsc_to_opensc_error(rv); >+ else if (rv == (LONG)SCARD_E_UNKNOWN_READER) >+ { >+ /* No reader by requested name known to subsystem, lets consider the reader as detached */ >+ reader->flags &= ~(SC_READER_CARD_PRESENT); >+ SC_FUNC_RETURN(reader->ctx, SC_LOG_DEBUG_VERBOSE, SC_SUCCESS); >+ } >+ else >+ { >+ PCSC_TRACE(reader, "SCardGetStatusChange failed", rv); >+ return pcsc_to_opensc_error(rv); >+ } > } > state = priv->reader_state.dwEventState; > prev_state = priv->reader_state.dwCurrentState;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 7253
: 890 |
891