[augeas-devel] [Augeas] #219: Bug with postfix lense and master.cf

Augeas trac at fedorahosted.org
Mon Oct 3 21:09:38 UTC 2011


#219: Bug with postfix lense and master.cf
--------------------+-------------------------------------------------------
 Reporter:  bodgit  |       Owner:  lutter
     Type:  defect  |      Status:  new   
 Priority:  major   |   Milestone:  next  
Component:  Augeas  |     Version:  0.9.0 
 Keywords:          |  
--------------------+-------------------------------------------------------
 The Postfix lense doesn't like parsing or saving master.cf when there's a
 command with a comma somewhere in it, for example:

 {{{
 submission inet n       -       n       -       -       smtpd
   -o smtpd_enforce_tls=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 }}}

 Remove the ",reject" and it works. The following single line patch to
 postfix_master.aug seems to make it work:

 {{{
 --- postfix_master.aug.orig     2011-10-03 21:03:59.000000000 +0000
 +++ postfix_master.aug  2011-10-03 21:03:01.000000000 +0000
 @@ -19,7 +19,7 @@
  let empty      = Util.empty

  let word       = /[A-Za-z0-9_.-]+/
 -let words      = /[A-Za-z0-9$(){}=!_.-][A-Za-z0-9$!(){}
 ="\/_.-]*[A-Za-z0-9$!(){}="\/_.-]/
 +let words      = /[A-Za-z0-9$(){}=!_,.-][A-Za-z0-9$!(){}
 ="\/_,.-]*[A-Za-z0-9$!(){}="\/_,.-]/

  let bool       = /y|n|-/
  let integer    = /([0-9]+|-)\??/
 }}}

 Not sure if that's 100% correct?

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/219>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list