wiki:Errata/2013-03-04

Version 1 (modified by Dag-Erling Smørgrav, 7 years ago) (diff)

--

Errata: Configuration parsing

Date
2013-03-04
Affects
Micrampelis
References
http://blog.des.no/2013/03/on-testing-part-ii/
Description
When openpam_readword() encounters a string in which unquoted text precedes quoted text, it will return an empty string. This affects the PAM policy parser as well as any third-party code that relies on openpam_readword() and / or openpam_readlinev().
Workaround
Quote the entire string, e.g. "text=hello world" instead of text="hello world".
Fix
Apply r634 and r636.