[Bug 1814945] [NEW] decrypt_opensc redirects stderr to stdout

Avis Volans avisvolans at gmail.com
Wed Feb 6 18:25:14 UTC 2019


Public bug reported:

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

** Affects: cryptsetup (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/1814945

Title:
  decrypt_opensc redirects stderr to stdout

Status in cryptsetup package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1814945/+subscriptions



More information about the foundations-bugs mailing list