Bug 688 - Documentation of -e appears to be wrong (or at least misleading)
Documentation of -e appears to be wrong (or at least misleading)
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudoers
1.8.11
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-13 16:31 MDT by Reuben Thomas
Modified: 2015-03-21 19:15 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Thomas 2015-03-13 16:31:36 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?
Comment 1 Todd C. Miller 2015-03-17 10:50:53 MDT
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.
Comment 2 Reuben Thomas 2015-03-17 14:40:00 MDT
Thanks very much for the explanation and notification of fix.
Comment 3 Todd C. Miller 2015-03-21 19:15:37 MDT
Fixed in sudo 1.8.13, available now.