Hi,

I managed to come back to this bug and spent some time to prepare
a testcase:

  * the attached "working" /etc/sudoers is properly parsed by augeas
  * the attached "fail" /etc/sudoers makes augeas output empty

The only difference between these two files is the addition of the
following line in the failing testcase:

  Defaults!PBUILDER env_keep+="HOME ARCH DIST DISTRIBUTION PDEBUILD_PBUILDER"

In case you need anything else from me before you forward this bug
upstream or fix it, don't hesitate telling me.

Cheers,
--
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc
  | The impossible just takes a bit longer.

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults        env_reset
Defaults       
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/intrigeri/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/sbin/cowbuilder
Defaults!PBUILDER env_keep+="HOME ARCH DIST DISTRIBUTION PDEBUILD_PBUILDER"

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL:ALL) NOPASSWD : ALL
#
#includedir /etc/sudoers.d
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults        env_reset
Defaults       
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/intrigeri/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/sbin/cowbuilder

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL:ALL) NOPASSWD : ALL
#
#includedir /etc/sudoers.d

Reply via email to