Menu

#30 Option processing with spaces

open
nobody
None
1
2008-08-28
2006-02-01
No

I believe that the ability to bracket options in the
pam config file for values with spaces is a feature of
linux-pam. FreeBSD uses openpam and this feature
didn't work for me.

This patch makes it work. While functional, it has a
number of issues:

(1) Does not handle memory exhaustion.

(2) Does not error out if closing bracket not found.

(3) If compiling on FreeBSD, it should use FreeBSD's
reallocf to avoid leaking memory if realloc fails.

(4) Does not handle embedded brackets. For example,
[where=this and []that] would set the where option to
"this and ".

Discussion

  • Mark Bucciarelli

    forgot the patch

     
  • (C)0||3N

    (C)0||3N - 2008-08-28
    • priority: 5 --> 1
     

Log in to post a comment.