svn rev #19530: branches/krb5-1-6/ src/util/profile/

tlyu@MIT.EDU tlyu at MIT.EDU
Wed Apr 25 20:31:37 EDT 2007


Commit By: tlyu
Log Message: 
ticket: 5547
version_fixed: 1.6.2

pull up r19529 from trunk

 r19529 at cathode-dark-space:  jaltman | 2007-04-25 18:55:58 -0400
 ticket: new
 subject: profile stores empty string values without double quotes
 tags: pullup
 
         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.
 
 




Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/util/profile/prof_parse.c



More information about the cvs-krb5 mailing list