decrypt_opensc redirects stderr to stdout

Bug #1814945 reported by Avis Volans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
New
Undecided
Unassigned

Bug Description

decrypt_opensc redirects stderr to stdout when calling /usr/bin/opensc-tool. This will break scripts that rely on decrypt_opensc to print nothing but the decrypted key to stdout.

if /usr/bin/opensc-tool -n 2>&1; then
    cardfound=1
fi

Ubuntu 18.10
cryptsetup-run:
  Installed: 2:2.0.4-2ubuntu2
  Candidate: 2:2.0.4-2ubuntu2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.