pkcs11_make_hash_link: variables are not quoted properly

Bug #273620 reported by Tamas Tarjanyi
2
Affects Status Importance Assigned to Milestone
pam-pkcs11 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In Intrepid execution of pkcs11_make_hash_link can lead to these error messages:
/usr/bin/pkcs11_make_hash_link: line 66: [: CA:TRUE,: binary operator expected
/usr/bin/pkcs11_make_hash_link: line 57: [: CA:TRUE,: binary operator expected

Reason is that $is_ca is not quoted and it can contains spaces like below.
$ openssl x509 -inform der -in something.cer -noout -text|grep CA:TRUE
                CA:TRUE, pathlen:0
$

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

This is corrected in version 0.6.1 of pam-pkcs11.
This version is not yet in Ubuntu but is in Debian since 07 Jul 2009.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

Version 0.6.1 is now present in "Lucid Lynx".
https://launchpad.net/ubuntu/+source/pam-pkcs11

Closing the bug.

Changed in pam-pkcs11 (Ubuntu):
status: New → Fix Released
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.