[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [augeas-devel] [Augeas] #341: augtool fails to write the sudoers file when negating syslog logging



#341: augtool fails to write the sudoers file when negating syslog logging
----------------------+---------------------
  Reporter:  sirinek  |      Owner:  lutter
      Type:  defect   |     Status:  new
  Priority:  major    |  Milestone:  next
 Component:  Augeas   |    Version:  1.0.0
Resolution:           |   Keywords:  sudoers
Blocked By:           |   Blocking:
----------------------+---------------------

Comment (by raphink):

 Note: you should use `clear` instead of `set $path ""`.

 The problem comes from the definition of `negate_or_value` as:

 {{{
 let negate_or_value (key:lens) (value:lens) =
   [ del_negate . (negate_node . key | key . value) ]
 }}}

 For some reason, this prevents from using the `negate_note . key`
 alternative when setting the node. Changing to:

 {{{
 let negate_or_value (key:lens) (value:lens) =
   del_negate . [ negate_node . key ] | [ key . value ]
 }}}

 would work, but then:

 {{{
 test Sudoers.parameter_integer_bool
     put "umask = 022"
     after set "/umask/negate" ""  = "!umask"
 }}}

 would stop working, as it would not be possible to have both a value and a
 negate node.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/341#comment:1>
Augeas <http://augeas.net/>
a configuration API


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]