Bug 860655 - pkcs11-tool refuses to read stdin if stdout is redirected
pkcs11-tool refuses to read stdin if stdout is redirected
Status: NEW
Product: Fedora EPEL
Classification: Fedora
Component: opensc (Show other bugs)
el6
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-26 08:02 EDT by Marko Myllynen
Modified: 2012-09-26 08:02 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2012-09-26 08:02:03 EDT
Description of problem:
The following works as expected

pkcs11-tool --module ... -I -l
...
Please enter User PIN:
...

but with stdout redirected pkcs11-tool refuses to read from stdin

pkcs11-tool --module ... -I -l > /dev/null
...
error: No PIN entered, exiting!
...

It would be helpful to have this working in scripts to check a user supplied password silently if ok or error out if invalid password.

Version-Release number of selected component (if applicable):
opensc-0.12.2-2.el6.x86_64

Note You need to log in before you can comment on or make changes to this bug.