[krbdev.mit.edu #5547] SVN Commit

Jeffrey Altman via RT rt-comment at krbdev.mit.edu
Wed Apr 25 18:56:05 EDT 2007


        prof_parse.c (need_double_quotes):
        The profile library will happily read in right hand values
        that represent the empty string by parsing "".  However,
        when storing the same empty string back to a file, the 
        empty string is written without the double quotes.

        This means that

                [section] foo = ""

        becomes

                [section] foo =

        which is invalid input.  A subsequent attempt to parse the
        profile will result in an invalid input error.  

        KFW and KFM's realm editors can inadvertently produce an 
        invalid krb5 profile if one of the ignored sections of the
        input profile contains a right hand value that is "".

        This patch was produced by Asanka Herath and it was reviewed
        by jaltman and lxs.


Commit By: jaltman



Revision: 19529
Changed Files:
U   trunk/src/util/profile/prof_parse.c




More information about the krb5-bugs mailing list