|
Bugzilla – Full Text Bug Listing |
| Summary: | Should strip quotes when importing /etc/environment | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Loïc Minier <lool> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Strip quotes like pam_env when parsing /etc/environment | ||
|
Description
Loïc Minier
2009-06-22 11:37:32 MDT
NB: the attached patch is against CVS and differs slightly from the one in Launchpad.
With LANG="fr_FR.UTF-8 in /etc/environment, before the change, with Ubuntu's sudo:
sudo -i perl -e 1
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "fr_FR:fr:en_GB:en",
LC_ALL = (unset),
LANG = ""fr_FR.UTF-8""
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
after the change:
./sudo -i perl -e 1
(no output)
I compiled a larger set of tests in the Launchpad bug.
I took a slightly different approach but the result is the same. The change will be in sudo 1.7.2, for which there should be a release candidate next week. FYI: ftp://ftp.sudo.ws/pub/sudo/beta/sudo-1.7.2b3.tar.gz is now available which contains the fix. Thanks for the quick review, rewrite, and release! |