ykchalresp fails on armel
Bug #884411 reported by
Serge Hallyn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
yubikey-personalization (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ykchalresp uses a char to store the getopt return value and then compares it to -1 to detect the end of options. However char is usigned by default on arm, so this breaks.
The trivial one-line fix is to turn 'char c' into a signed char.
To post a comment you must log in.
Correct fix is to use 'int' since that is the return type of getopt(3).
Fixed in commit a8e3af907 of upstream project.
/Fredrik