env_delete += "LC_ALL" is ignored

Bug #314544 reported by Gioele Barabucci
2
Affects Status Importance Assigned to Milestone
sudo
Unknown
Unknown
sudo (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

sudo 1.6.9p17 ignores env_delete += "LC_something" and env_delete = "LC_something" in /etc/sudoers

$ sudo cat /etc/sudoers | grep Defaults
# Defaults
Defaults !lecture,tty_tickets,!fqdn
Defaults env_delete += "LC_ALL LC_NAME"

$ export LC_ALL='foobar'

$ sudo -i
# set | grep LC_ALL
LC_ALL=foobar

Revision history for this message
Gioele Barabucci (gioele) wrote :

This is a comment I received from the author:

  env_delete is only used when env_reset is not enabled.
  Since env_reset is the default now, you probably want to
  remove "LC_*" from env_check.

Revision history for this message
Gioele Barabucci (gioele) wrote :

At least the manpage should be updated to inform that env_delete is ignored when env_reset is set (like it is in Ubuntu).

Revision history for this message
Rolf Leggewie (r0lf) wrote :

The requested documentation change was made according to the upstream ticket and I was able to verify this in trusty.

Closing as fixed.

Changed in sudo (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.