Bugzilla – Bug 688
Documentation of -e appears to be wrong (or at least misleading)
Last modified: 2015-03-21 19:15:37 MDT
The sudo man page says: "Note that unlike most commands run by sudo, the editor is run with the invoking user's environment unmodified." However, this is not quite true, at least in some circumstances: on my system PATH is set to the secure_path default setting. Is it just the rest of env_reset that is not performed?
When the sudoers policy was split into a seoarate module for sudo 1.8.x the environment handling for sudoedit was changed to be the same as for regular sudo. I consider this to be a bug in sudoedit rather than a documentation bug. As such I've just checked in a change to make the behavior match the documentation (and sudo 1.7.x) http://www.sudo.ws/repos/sudo/rev/a5081c8f6950 The fix will be in the upcoming sudo 1.8.13 release.
Thanks very much for the explanation and notification of fix.
Fixed in sudo 1.8.13, available now.